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
|
/// 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) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (type != WindowType.Main && windowId == null) {
|
if (type != WindowType.Main && windowId == null) {
|
||||||
debugPrint(
|
debugPrint(
|
||||||
"Error: windowId cannot be null when saving positions for sub window");
|
"Error: windowId cannot be null when saving positions for sub window");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user