This commit is contained in:
rustdesk 2023-06-27 13:52:29 +08:00
parent 4146e9a334
commit 22558b5775

View File

@ -1444,7 +1444,9 @@ Future<Offset?> _adjustRestoreMainWindowOffset(
/// Restore window position and size on start /// Restore window position and size on start
/// Note that windowId must be provided if it's subwindow /// Note that windowId must be provided if it's subwindow
Future<bool> restoreWindowPosition(WindowType type, {int? windowId}) async { Future<bool> restoreWindowPosition(WindowType type, {int? windowId}) async {
if (bind.mainGetEnv("DISABLE_RUSTDESK_RESTORE_WINDOW_POSITION").isNotEmpty) { if (bind
.mainGetEnv(key: "DISABLE_RUSTDESK_RESTORE_WINDOW_POSITION")
.isNotEmpty) {
return false; return false;
} }
if (type != WindowType.Main && windowId == null) { if (type != WindowType.Main && windowId == null) {