🧹 make clippy happy
This commit is contained in:
parent
5baf605d65
commit
06e07a76a4
|
@ -520,12 +520,10 @@ fn on_servbtn_clicked(button: >k::CheckButton) {
|
||||||
} else {
|
} else {
|
||||||
format!("/sbin/pkexec bash -c \"systemctl enable --now --force {action_data}\"")
|
format!("/sbin/pkexec bash -c \"systemctl enable --now --force {action_data}\"")
|
||||||
}
|
}
|
||||||
|
} else if action_type == "user_service" {
|
||||||
|
format!("systemctl --user disable --now {action_data}")
|
||||||
} else {
|
} else {
|
||||||
if action_type == "user_service" {
|
format!("/sbin/pkexec bash -c \"systemctl disable --now {action_data}\"")
|
||||||
format!("systemctl --user disable --now {action_data}")
|
|
||||||
} else {
|
|
||||||
format!("/sbin/pkexec bash -c \"systemctl disable --now {action_data}\"")
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Create context channel.
|
// Create context channel.
|
||||||
|
|
Loading…
Reference in New Issue