fix: macos, remove unused workaround (#8746)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
a72bc0fb28
commit
e9c8ba5393
@ -141,17 +141,7 @@ class RustDeskMultiWindowManager {
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
if (isMacOS) {
|
if (isMacOS) {
|
||||||
Future.microtask(() {
|
Future.microtask(() => windowController.show());
|
||||||
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);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
registerActiveWindow(windowId);
|
registerActiveWindow(windowId);
|
||||||
windows.add(windowId);
|
windows.add(windowId);
|
||||||
|
@ -335,7 +335,7 @@ packages:
|
|||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: HEAD
|
ref: HEAD
|
||||||
resolved-ref: c9ac8e78f8e8f0a554062c2c13cdeb644af2c25b
|
resolved-ref: "336308d86ec8b9640504a371b50ba500eb779363"
|
||||||
url: "https://github.com/rustdesk-org/rustdesk_desktop_multi_window"
|
url: "https://github.com/rustdesk-org/rustdesk_desktop_multi_window"
|
||||||
source: git
|
source: git
|
||||||
version: "0.1.0"
|
version: "0.1.0"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user