plasmoid: Show start/stop button when systemd available

This commit is contained in:
Martchus 2017-10-03 23:31:22 +02:00
parent feed447cca
commit c6d21ea3a1
1 changed files with 1 additions and 1 deletions

View File

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