mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-05-20 17:47:19 +00:00
Keep app alive in background when popup is hidden, like macOS menubar
This commit is contained in:
parent
e854d23a18
commit
5e1ad15707
1 changed files with 7 additions and 2 deletions
|
|
@ -87,8 +87,13 @@ pub fn run() {
|
|||
commands::open_terminal_command,
|
||||
commands::quit_app,
|
||||
])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
.build(tauri::generate_context!())
|
||||
.expect("error while running tauri application")
|
||||
.run(|_app, event| {
|
||||
if let tauri::RunEvent::ExitRequested { api, .. } = event {
|
||||
api.prevent_exit();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue