feat(ui): rename pause/resume all to Disable/Enable auto with pause icon
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+5
-5
@@ -202,9 +202,9 @@ func newJobsView(w fyne.Window, svc *app.Service) (fyne.CanvasObject, func()) {
|
|||||||
refreshView()
|
refreshView()
|
||||||
})
|
})
|
||||||
|
|
||||||
stopAllText, stopAllIcon := "Pause all", theme.MediaStopIcon()
|
stopAllText, stopAllIcon := "Disable auto", theme.MediaPauseIcon()
|
||||||
if schedulerPaused {
|
if schedulerPaused {
|
||||||
stopAllText, stopAllIcon = "Resume all", theme.MediaPlayIcon()
|
stopAllText, stopAllIcon = "Enable auto", theme.MediaPlayIcon()
|
||||||
}
|
}
|
||||||
schedulerStateText := "Scheduler running"
|
schedulerStateText := "Scheduler running"
|
||||||
if schedulerPaused {
|
if schedulerPaused {
|
||||||
@@ -223,12 +223,12 @@ func newJobsView(w fyne.Window, svc *app.Service) (fyne.CanvasObject, func()) {
|
|||||||
}
|
}
|
||||||
if schedulerPaused {
|
if schedulerPaused {
|
||||||
schedulerState.SetText("Scheduler paused")
|
schedulerState.SetText("Scheduler paused")
|
||||||
stopAllButton.SetText("Resume all")
|
stopAllButton.SetText("Enable auto")
|
||||||
stopAllButton.SetIcon(theme.MediaPlayIcon())
|
stopAllButton.SetIcon(theme.MediaPlayIcon())
|
||||||
} else {
|
} else {
|
||||||
schedulerState.SetText("Scheduler running")
|
schedulerState.SetText("Scheduler running")
|
||||||
stopAllButton.SetText("Pause all")
|
stopAllButton.SetText("Disable auto")
|
||||||
stopAllButton.SetIcon(theme.MediaStopIcon())
|
stopAllButton.SetIcon(theme.MediaPauseIcon())
|
||||||
}
|
}
|
||||||
list.Refresh()
|
list.Refresh()
|
||||||
refreshView()
|
refreshView()
|
||||||
|
|||||||
Reference in New Issue
Block a user