mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-13 03:28:03 +00:00
Enable change id only when connected
This commit is contained in:
@@ -519,7 +519,9 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin {
|
||||
}
|
||||
|
||||
Widget changeId() {
|
||||
return _Button('Change ID', changeIdDialog, enabled: !locked);
|
||||
final serverModel = Provider.of<ServerModel>(context);
|
||||
return _Button('Change ID', changeIdDialog,
|
||||
enabled: !locked && serverModel.connectStatus > 0);
|
||||
}
|
||||
|
||||
Widget permissions(context) {
|
||||
|
||||
Reference in New Issue
Block a user