Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix: macos, remove unused workaround (#8746)

fufesoue9c8ba5393db
diff --git a/flutter/lib/utils/multi_window_manager.dart b/flutter/lib/utils/multi_window_manager.dart
index 1a14ac77e..191152c86 100644
--- a/flutter/lib/utils/multi_window_manager.dart
+++ b/flutter/lib/utils/multi_window_manager.dart
@@ -141,17 +141,7 @@ class RustDeskMultiWindowManager {
));
}
if (isMacOS) {
- Future.microtask(() {
- windowController.show();
- // Manually simulate the hide/show event to fix the issue
- // https://github.com/rustdesk/rustdesk/issues/8548
- // https://github.com/flutter/flutter/issues/133533
- // https://github.com/MixinNetwork/flutter-plugins/issues/289#issuecomment-1817665239
- // https://github.com/rustdesk/rustdesk/pull/8712#issuecomment-2229912473
- Future.delayed(const Duration(milliseconds: 300), () {
- DesktopMultiWindow.hideShow(-1);
- });
- });
+ Future.microtask(() => windowController.show());
}
registerActiveWindow(windowId);
windows.add(windowId);
diff --git a/flutter/pubspec.lock b/flutter/pubspec.lock
index 94f0671af..060606181 100644
--- a/flutter/pubspec.lock
+++ b/flutter/pubspec.lock
@@ -335,7 +335,7 @@ packages:
description:
path: "."
ref: HEAD
- resolved-ref: c9ac8e78f8e8f0a554062c2c13cdeb644af2c25b
+ resolved-ref: "336308d86ec8b9640504a371b50ba500eb779363"
url: "https://github.com/rustdesk-org/rustdesk_desktop_multi_window"
source: git
version: "0.1.0"