Skip to content

Commit

Permalink
Bug fix: prevent spamming GUI thread after user closes GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmoretti committed Oct 29, 2022
1 parent 8d07d8e commit 4c5564f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ pub fn on_frame_begin(lua: &Lua, _: ()) -> LuaResult<()> {
};

send_worker_message(worker_msg);
send_gui_message(gui_msg);
if is_gui_shown() {
send_gui_message(gui_msg);
}
Ok(())
}

Expand Down

0 comments on commit 4c5564f

Please sign in to comment.