Browse Source

neon: Fix window not hiding to tray when clicking minimize

pull/104/head
jld3103 2 years ago
parent
commit
ec9a7b497c
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 5
      packages/neon/lib/src/app.dart

5
packages/neon/lib/src/app.dart

@ -225,6 +225,11 @@ class _NeonAppState extends State<NeonApp> with WidgetsBindingObserver, tray.Tra
}
}
@override
Future onWindowMinimize() async {
await _saveAndMinimizeWindow();
}
Future _handleShortcut(final String shortcutType) async {
if (shortcutType == 'show_hide') {
if (_platform.canUseWindowManager) {

Loading…
Cancel
Save