From 35fb9f88975cd375aaac1e89d91f2168b06fc07f Mon Sep 17 00:00:00 2001 From: fufesou <13586388+fufesou@users.noreply.github.com> Date: Mon, 10 Jun 2024 23:01:55 +0800 Subject: [PATCH] fix: peer option, individual_windows, use 'N' instead of '' (#8307) Signed-off-by: fufesou --- flutter/lib/common/widgets/toolbar.dart | 4 ++-- flutter/lib/desktop/widgets/remote_toolbar.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flutter/lib/common/widgets/toolbar.dart b/flutter/lib/common/widgets/toolbar.dart index c1fabdf933be..699aaa143d27 100644 --- a/flutter/lib/common/widgets/toolbar.dart +++ b/flutter/lib/common/widgets/toolbar.dart @@ -596,7 +596,7 @@ Future> toolbarDisplayToggle( onChanged: (value) { if (value == null) return; bind.sessionSetDisplaysAsIndividualWindows( - sessionId: sessionId, value: value ? 'Y' : ''); + sessionId: sessionId, value: value ? 'Y' : 'N'); }, child: Text(translate('Show displays as individual windows')))); } @@ -613,7 +613,7 @@ Future> toolbarDisplayToggle( onChanged: (value) { if (value == null) return; bind.sessionSetUseAllMyDisplaysForTheRemoteSession( - sessionId: sessionId, value: value ? 'Y' : ''); + sessionId: sessionId, value: value ? 'Y' : 'N'); }, child: Text(translate('Use all my displays for the remote session')))); } diff --git a/flutter/lib/desktop/widgets/remote_toolbar.dart b/flutter/lib/desktop/widgets/remote_toolbar.dart index b65348f05b8b..e3d2f72a144d 100644 --- a/flutter/lib/desktop/widgets/remote_toolbar.dart +++ b/flutter/lib/desktop/widgets/remote_toolbar.dart @@ -665,7 +665,7 @@ class _MonitorMenu extends StatelessWidget { onChanged: (value) async { if (value == null) return; await bind.sessionSetDisplaysAsIndividualWindows( - sessionId: ffi.sessionId, value: value ? 'Y' : ''); + sessionId: ffi.sessionId, value: value ? 'Y' : 'N'); }, ffi: ffi, child: Text(translate('Show displays as individual windows')));