virtual_display_privacy_mode, switch privacy mode directly

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-11-14 19:36:51 +08:00
parent e2382a1465
commit 1905a81f9a
5 changed files with 26 additions and 17 deletions

View File

@@ -277,9 +277,7 @@ void setPrivacyModeDialog(
visualDensity: VisualDensity.compact,
title: value.child,
value: value.value,
onChanged: (privacyModeState.isEmpty || value.value)
? value.onChanged
: null,
onChanged: value.onChanged,
))
.toList()),
);