Added close behaviour option for specific window (#3754)
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
1 parent
c3c7e5f705
commit
9573af115a
10 files changed
+172
-28
No files matched your search
@@ -103,6 +103,9 @@ pub fn launch_virtual_dom_blocking(virtual_dom: VirtualDom, mut desktop_config:
|
||||
IpcMethod::BrowserOpen => app.handle_browser_open(msg),
|
||||
IpcMethod::Other(_) => {}
|
||||
},
|
||||
UserWindowEvent::CloseBehaviour(window_id, window_close_behaviour) => {
|
||||
app.change_window_close_behaviour(window_id, window_close_behaviour)
|
||||
}
|
||||
},
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user