disable windows position env, https://www.reddit.com/r/rustdesk/comments/14ijhx6/windows_10_and_11_multiple_screens_causes/
This commit is contained in:
parent
c8176eb7c6
commit
46f29f41af
@ -1444,6 +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) {
|
||||
return false;
|
||||
}
|
||||
if (type != WindowType.Main && windowId == null) {
|
||||
debugPrint(
|
||||
"Error: windowId cannot be null when saving positions for sub window");
|
||||
|
Loading…
x
Reference in New Issue
Block a user