mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
opt: main window save/restore offset/position
This commit is contained in:
@@ -46,7 +46,10 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
||||
// close all sub windows
|
||||
if (await windowManager.isPreventClose()) {
|
||||
try {
|
||||
await rustDeskWinManager.closeAllSubWindows();
|
||||
await Future.wait([
|
||||
saveWindowPosition(WindowType.Main),
|
||||
rustDeskWinManager.closeAllSubWindows()
|
||||
]);
|
||||
} catch (err) {
|
||||
debugPrint("$err");
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user