desktop app saves window position fix (#2730)
* desktop app saves window position fix * debug cfg * cargo fmt
This commit is contained in:
1 parent
3db24934d6
commit
23dfe39bdf
1 file changed
+3
@@ -175,6 +175,9 @@ impl App {
|
||||
|
||||
match self.window_behavior {
|
||||
LastWindowExitsApp => {
|
||||
#[cfg(debug_assertions)]
|
||||
self.persist_window_state();
|
||||
|
||||
self.webviews.remove(&id);
|
||||
if self.webviews.is_empty() {
|
||||
self.control_flow = ControlFlow::Exit
|
||||
|
||||
Reference in new issue
Block a user