desktop app saves window position fix (#2730)

* desktop app saves window position fix

* debug cfg

* cargo fmt
This commit is contained in:
Adam Kundrát authored and GitHub committed 2024-07-29 12:25:34 -07:00
1 parent 3db24934d6
commit 23dfe39bdf
1 file changed
+3
+3
View File
@@ -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