plasmoid: Show start/stop button when systemd available
This commit is contained in:
parent
feed447cca
commit
c6d21ea3a1
|
@ -305,7 +305,7 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
// show start/stop button only when the configured unit is available
|
// show start/stop button only when the configured unit is available
|
||||||
var service = nativeInterface.service
|
var service = nativeInterface.service
|
||||||
if (!service || !service.unitAvailable) {
|
if (!service || !service.systemdAvailable) {
|
||||||
return "irrelevant"
|
return "irrelevant"
|
||||||
}
|
}
|
||||||
return service.running ? "running" : "stopped"
|
return service.running ? "running" : "stopped"
|
||||||
|
|
Loading…
Reference in New Issue