mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 19:17:58 +00:00
feat: tray logic in windows
This commit is contained in:
@@ -511,11 +511,11 @@ class WindowActionPanelState extends State<WindowActionPanel>
|
||||
if (res) {
|
||||
// hide for all window
|
||||
// note: the main window can be restored by tray icon
|
||||
Future.delayed(Duration.zero, () {
|
||||
Future.delayed(Duration.zero, () async {
|
||||
if (widget.isMainWindow) {
|
||||
windowManager.hide();
|
||||
await windowManager.hide();
|
||||
} else {
|
||||
WindowController.fromWindowId(windowId!).hide();
|
||||
await WindowController.fromWindowId(windowId!).hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user