mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-16 14:41:27 +03:00
show one display when privacy mode is on
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -509,7 +509,9 @@ class _MonitorMenu extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (stateGlobal.displaysCount.value < 2) return Offstage();
|
||||
if (PrivacyModeState.find(id).isTrue || stateGlobal.displaysCount.value < 2) {
|
||||
return Offstage();
|
||||
}
|
||||
return _IconSubmenuButton(
|
||||
icon: icon(),
|
||||
ffi: ffi,
|
||||
|
||||
Reference in New Issue
Block a user