mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-13 03:28:03 +00:00
opt: hide window
This commit is contained in:
@@ -541,8 +541,11 @@ class WindowActionPanelState extends State<WindowActionPanel>
|
||||
Future.delayed(Duration.zero, () async {
|
||||
if (widget.isMainWindow) {
|
||||
await windowManager.hide();
|
||||
rustDeskWinManager.unregisterActiveWindow(0);
|
||||
} else {
|
||||
await WindowController.fromWindowId(windowId!).hide();
|
||||
rustDeskWinManager.call(
|
||||
WindowType.Main, kWindowEventHide, {"id": windowId!});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user