plugins-workspace icon indicating copy to clipboard operation
plugins-workspace copied to clipboard

[bug][v2][window-state] window state not saved when closing through menu on macOS

Open thewh1teagle opened this issue 1 year ago • 4 comments

When I close the app from File -> Close Window or Window -> Close Window or from traffic lights it does save size + position. But when closing from PredefinedMenuItem::quit it doesn't save the window state before closing.

Happens only in window created with tauri::WindowBuilder (behind unstable feature) but doesn't happen in window created from tauri::WebviewWindowBuilder

thewh1teagle avatar Mar 25 '24 15:03 thewh1teagle

/upstream tauri-apps/tauri

FabianLars avatar Aug 07 '24 13:08 FabianLars

Do you think you can provide a minimal reproduction for us? Or at least show us the logic of the quit menu item.

FabianLars avatar Aug 07 '24 13:08 FabianLars

Do you think you can provide a minimal reproduction for us? Or at least show us the logic of the quit menu item.

It happened when I simply created the main window with tauri::WindowBuilder, enabled the window-state plugin, and closed the window through the menu App Name -> Quit or Window -> Close.

thewh1teagle avatar Aug 07 '24 13:08 thewh1teagle

okay thanks

FabianLars avatar Aug 07 '24 13:08 FabianLars