Compare commits
2 Commits
4af816d931
...
313ebc64cc
Author | SHA1 | Date | |
---|---|---|---|
|
313ebc64cc | ||
|
1ed8b1d0c1 |
@@ -48,11 +48,12 @@ class TrayService {
|
||||
void handleAction(MenuItem item) {
|
||||
switch (item.key) {
|
||||
case 'show_window':
|
||||
if (appWindow.isVisible) {
|
||||
appWindow.restore();
|
||||
} else {
|
||||
appWindow.show();
|
||||
}
|
||||
() async {
|
||||
appWindow.show();
|
||||
appWindow.restore();
|
||||
await Future.delayed(const Duration(milliseconds: 32));
|
||||
appWindow.show();
|
||||
}();
|
||||
break;
|
||||
case 'exit_app':
|
||||
appWindow.close();
|
||||
|
Reference in New Issue
Block a user