mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-27 23:19:02 +08:00
do not lock security if service is stopped, because users may change it
before starting service
This commit is contained in:
parent
a5d56fcd3f
commit
063891a2c1
@ -490,7 +490,6 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin {
|
||||
bool get wantKeepAlive => true;
|
||||
bool locked = bind.mainIsInstalled();
|
||||
final scrollController = ScrollController();
|
||||
final RxBool serviceStop = Get.find<RxBool>(tag: 'stop-service');
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@ -524,11 +523,11 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin {
|
||||
}
|
||||
|
||||
Widget permissions(context) {
|
||||
return Obx(() => _permissions(context, serviceStop.value));
|
||||
return Obx(() => _permissions(context));
|
||||
}
|
||||
|
||||
Widget _permissions(context, bool stopService) {
|
||||
bool enabled = !locked && stopService;
|
||||
Widget _permissions(context) {
|
||||
bool enabled = !locked;
|
||||
return futureBuilder(future: () async {
|
||||
return await bind.mainGetOption(key: 'access-mode');
|
||||
}(), hasData: (data) {
|
||||
|
Loading…
Reference in New Issue
Block a user