fix: macos, remove unused workaround (#8746)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2024-07-18 10:38:15 +08:00 committed by GitHub
parent a72bc0fb28
commit e9c8ba5393
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 12 deletions

View File

@ -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);

View File

@ -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"