Skip to content

Commit 6b3bcc8

Browse files
Honour the close setting when quitting from the tray canonical#3919
Previously, the tray menu action "Quit" caused a function to immediately destroy the window. Now the usual process of closing window is taking place. Signed-off-by: Artem <[email protected]>
1 parent dbf3c7c commit 6b3bcc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/gui/lib/tray_menu.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Future<void> setupTrayMenu(ProviderContainer providerContainer) async {
9595
await TrayMenu.instance.addLabel(
9696
'quit',
9797
label: 'Quit',
98-
callback: (_, __) => windowManager.destroy(),
98+
callback: (_, __) => windowManager.close(),
9999
);
100100

101101
await TrayMenu.instance.show(await _iconFilePath());

0 commit comments

Comments
 (0)