fix CI failed build on linux

This commit is contained in:
chenbaiyu
2022-01-14 03:38:22 +08:00
parent b4f61c735e
commit 78450fda08
2 changed files with 3 additions and 1 deletions

View File

@@ -364,7 +364,8 @@ impl UI {
}
ipc::set_options(options.clone()).ok();
if cfg!(target_os = "macos") && &key == "stop-service" {
#[cfg(target_os = "macos")]
if &key == "stop-service" {
crate::platform::macos::launch_or_stop_daemon(value != "Y");
}
}