Merge pull request #1782 from Kingtous/master
fix: sub window failed to start or freeze issue
This commit is contained in:
commit
05e81d3345
@ -64,6 +64,9 @@ class _FileManagerTabPageState extends State<FileManagerTabPage> {
|
||||
tabController.clear();
|
||||
}
|
||||
});
|
||||
Future.delayed(Duration.zero, () {
|
||||
restoreWindowPosition(WindowType.FileTransfer, windowId: windowId());
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -72,6 +72,9 @@ class _PortForwardTabPageState extends State<PortForwardTabPage> {
|
||||
tabController.clear();
|
||||
}
|
||||
});
|
||||
Future.delayed(Duration.zero, () {
|
||||
restoreWindowPosition(WindowType.PortForward, windowId: windowId());
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -92,6 +92,9 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
|
||||
}
|
||||
_update_remote_count();
|
||||
});
|
||||
Future.delayed(Duration.zero, () {
|
||||
restoreWindowPosition(WindowType.RemoteDesktop, windowId: windowId());
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -121,7 +121,6 @@ void runMobileApp() async {
|
||||
|
||||
void runRemoteScreen(Map<String, dynamic> argument) async {
|
||||
await initEnv(kAppTypeDesktopRemote);
|
||||
await restoreWindowPosition(WindowType.RemoteDesktop, windowId: windowId);
|
||||
runApp(GetMaterialApp(
|
||||
navigatorKey: globalKey,
|
||||
debugShowCheckedModeBanner: false,
|
||||
@ -147,7 +146,6 @@ void runRemoteScreen(Map<String, dynamic> argument) async {
|
||||
|
||||
void runFileTransferScreen(Map<String, dynamic> argument) async {
|
||||
await initEnv(kAppTypeDesktopFileTransfer);
|
||||
await restoreWindowPosition(WindowType.FileTransfer, windowId: windowId);
|
||||
runApp(
|
||||
GetMaterialApp(
|
||||
navigatorKey: globalKey,
|
||||
@ -173,7 +171,6 @@ void runFileTransferScreen(Map<String, dynamic> argument) async {
|
||||
|
||||
void runPortForwardScreen(Map<String, dynamic> argument) async {
|
||||
await initEnv(kAppTypeDesktopPortForward);
|
||||
await restoreWindowPosition(WindowType.PortForward, windowId: windowId);
|
||||
runApp(
|
||||
GetMaterialApp(
|
||||
navigatorKey: globalKey,
|
||||
|
@ -64,7 +64,7 @@ dependencies:
|
||||
desktop_multi_window:
|
||||
git:
|
||||
url: https://github.com/Kingtous/rustdesk_desktop_multi_window
|
||||
ref: 318ebd0a70cc5868911591c04f84bf1541f1bf4e
|
||||
ref: 541f05f766c3f72984ff40b70dd3c7d061f2ce61
|
||||
freezed_annotation: ^2.0.3
|
||||
tray_manager:
|
||||
git:
|
||||
|
Loading…
x
Reference in New Issue
Block a user