mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 11:06:57 +00:00
minimize cm before hide to send focus back
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -134,8 +134,7 @@ void runMainApp(bool startService) async {
|
||||
await restoreWindowPosition(WindowType.Main);
|
||||
// Check the startup argument, if we successfully handle the argument, we keep the main window hidden.
|
||||
final handledByUniLinks = await initUniLinks();
|
||||
debugPrint(
|
||||
"handled by uni links: $handledByUniLinks");
|
||||
debugPrint("handled by uni links: $handledByUniLinks");
|
||||
if (handledByUniLinks || checkArguments()) {
|
||||
windowManager.hide();
|
||||
} else {
|
||||
@@ -249,6 +248,7 @@ void hideCmWindow() {
|
||||
windowManager.setOpacity(0);
|
||||
windowManager.waitUntilReadyToShow(windowOptions, () async {
|
||||
bind.mainHideDocker();
|
||||
await windowManager.minimize();
|
||||
await windowManager.hide();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user