fix permissions
This commit is contained in:
parent
94536c6dea
commit
91e22caf4b
@ -523,10 +523,6 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget permissions(context) {
|
Widget permissions(context) {
|
||||||
return Obx(() => _permissions(context));
|
|
||||||
}
|
|
||||||
|
|
||||||
Widget _permissions(context) {
|
|
||||||
bool enabled = !locked;
|
bool enabled = !locked;
|
||||||
return futureBuilder(future: () async {
|
return futureBuilder(future: () async {
|
||||||
return await bind.mainGetOption(key: 'access-mode');
|
return await bind.mainGetOption(key: 'access-mode');
|
||||||
@ -575,11 +571,9 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin {
|
|||||||
await bind.mainSetOption(key: 'access-mode', value: mode);
|
await bind.mainSetOption(key: 'access-mode', value: mode);
|
||||||
setState(() {});
|
setState(() {});
|
||||||
}).marginOnly(left: _kContentHMargin),
|
}).marginOnly(left: _kContentHMargin),
|
||||||
Offstage(
|
Column(
|
||||||
child: Column(
|
|
||||||
children: [
|
children: [
|
||||||
_OptionCheckBox(
|
_OptionCheckBox(context, 'Enable Keyboard/Mouse', 'enable-keyboard',
|
||||||
context, 'Enable Keyboard/Mouse', 'enable-keyboard',
|
|
||||||
enabled: enabled, fakeValue: fakeValue),
|
enabled: enabled, fakeValue: fakeValue),
|
||||||
_OptionCheckBox(context, 'Enable Clipboard', 'enable-clipboard',
|
_OptionCheckBox(context, 'Enable Clipboard', 'enable-clipboard',
|
||||||
enabled: enabled, fakeValue: fakeValue),
|
enabled: enabled, fakeValue: fakeValue),
|
||||||
@ -596,15 +590,11 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin {
|
|||||||
_OptionCheckBox(
|
_OptionCheckBox(
|
||||||
context, 'Enable Recording Session', 'enable-record-session',
|
context, 'Enable Recording Session', 'enable-record-session',
|
||||||
enabled: enabled, fakeValue: fakeValue),
|
enabled: enabled, fakeValue: fakeValue),
|
||||||
_OptionCheckBox(
|
_OptionCheckBox(context, 'Enable remote configuration modification',
|
||||||
context,
|
|
||||||
'Enable remote configuration modification',
|
|
||||||
'allow-remote-config-modification',
|
'allow-remote-config-modification',
|
||||||
enabled: enabled,
|
enabled: enabled, fakeValue: fakeValue),
|
||||||
fakeValue: fakeValue),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
)
|
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user