Skip to content

Commit

Permalink
226_fix_overlayed_closing
Browse files Browse the repository at this point in the history
See Issue overlayeddev#226 in upstream repo
  • Loading branch information
Neyl-123 authored Dec 9, 2024
1 parent b338391 commit 845a643
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/desktop/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,12 @@ fn main() {
win.hide().unwrap();
}

api.prevent_close();
if label == MAIN_WINDOW_NAME {
app.save_window_state(StateFlags::POSITION | StateFlags::SIZE);
std::process::exit(0);
} else {
api.prevent_close();
}
}
});

Expand Down

0 comments on commit 845a643

Please sign in to comment.