From 18022cf8253bca0ad7b7f75b714493cace8d462a Mon Sep 17 00:00:00 2001 From: NicKoehler Date: Thu, 23 Mar 2023 18:54:49 +0100 Subject: [PATCH] fix for #3746 --- flutter/lib/desktop/widgets/remote_toolbar.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flutter/lib/desktop/widgets/remote_toolbar.dart b/flutter/lib/desktop/widgets/remote_toolbar.dart index 804d74499..c89bfa766 100644 --- a/flutter/lib/desktop/widgets/remote_toolbar.dart +++ b/flutter/lib/desktop/widgets/remote_toolbar.dart @@ -394,7 +394,7 @@ class _RemoteMenubarState extends State { } if (PrivacyModeState.find(widget.id).isFalse && - stateGlobal.displaysCount.value > 1) { + widget.ffi.ffiModel.pi.displays.length > 1) { toolbarItems.add( bind.mainGetUserDefaultOption(key: 'show_monitors_toolbar') == 'Y' ? _MultiMonitorMenu(id: widget.id, ffi: widget.ffi) @@ -2252,10 +2252,10 @@ class _MultiMonitorMenu extends StatelessWidget { final FFI ffi; const _MultiMonitorMenu({ - super.key, + Key? key, required this.id, required this.ffi, - }); + }) : super(key: key); @override Widget build(BuildContext context) {