fix desktop stop-service

This commit is contained in:
csf
2022-08-09 20:50:45 +08:00
parent cb88a3abb6
commit 42f27922bf
2 changed files with 17 additions and 5 deletions

View File

@@ -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(