mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-21 00:43:20 +03:00
fix desktop stop-service
This commit is contained in:
@@ -513,7 +513,12 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
||||
Future<PopupMenuItem<String>> genEnablePopupMenuItem(
|
||||
String label, String key) async {
|
||||
final v = await bind.mainGetOption(key: key);
|
||||
bool enable = v != "N";
|
||||
bool enable;
|
||||
if (key == "stop-service") {
|
||||
enable = v != "Y";
|
||||
} else {
|
||||
enable = v != "N";
|
||||
}
|
||||
|
||||
return PopupMenuItem(
|
||||
child: Row(
|
||||
|
||||
Reference in New Issue
Block a user