fix quit on startup

macos-click-through
Keith Simmons 3 years ago
parent 0ef1521a18
commit 80d5ed983c

@ -308,7 +308,7 @@ pub fn create_window(
let mut previous_frame_start = Instant::now(); let mut previous_frame_start = Instant::now();
event_loop.run(move |e, _window_target, control_flow| { event_loop.run(move |e, _window_target, control_flow| {
if RUNNING_TRACKER.is_running() { if !RUNNING_TRACKER.is_running() {
maybe_save_window_size(window_wrapper.saved_grid_size); maybe_save_window_size(window_wrapper.saved_grid_size);
std::process::exit(0); std::process::exit(0);
} }

Loading…
Cancel
Save