diff --git a/packages/neon/lib/src/app.dart b/packages/neon/lib/src/app.dart index 6c452510..a20c2d5d 100644 --- a/packages/neon/lib/src/app.dart +++ b/packages/neon/lib/src/app.dart @@ -225,6 +225,11 @@ class _NeonAppState extends State with WidgetsBindingObserver, tray.Tra } } + @override + Future onWindowMinimize() async { + await _saveAndMinimizeWindow(); + } + Future _handleShortcut(final String shortcutType) async { if (shortcutType == 'show_hide') { if (_platform.canUseWindowManager) {