diff options
| -rw-r--r-- | shared/Status.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shared/Status.qml b/shared/Status.qml index 5d799e2..dfb6b83 100644 --- a/shared/Status.qml +++ b/shared/Status.qml @@ -124,11 +124,13 @@ Singleton { root.nolockBeforePresentation = root.nolock; root.setMode("dnd", true); root.setMode("nolock", true); - root.runBreaktimer("pause"); + // pause/resume write the state file whether or not a daemon + // runs, so send the verb only when one exists. + if (root.btRunning) root.runBreaktimer("pause"); } else { root.setMode("dnd", root.dndBeforePresentation); root.setMode("nolock", root.nolockBeforePresentation); - root.runBreaktimer("resume"); + if (root.btRunning) root.runBreaktimer("resume"); } } |
