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
/// Note that windowId must be provided if it's subwindow
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;
}
if (type != WindowType.Main && windowId == null) {