From e7ea94416f909c41778155ed845f168df3dff8b4 Mon Sep 17 00:00:00 2001 From: intergrav Date: Sun, 28 Jun 2026 09:04:23 -0400 Subject: [PATCH] chore: clean up onbusychanged --- tray.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tray.go b/tray.go index 47cae54..5ff5d0f 100644 --- a/tray.go +++ b/tray.go @@ -175,19 +175,13 @@ func onReady() { sched := cron.New() var applyConfig func() - state.onBusyChanged = func(bool) { - idx := getActiveProfile() - if isProfileBusy(idx) { + state.onBusyChanged = func(busy bool) { + if busy { mCancel.Show() mBackup.Hide() mPrune.Disable() mCheck.Disable() mUnlock.Disable() - } else { - mCancel.Hide() - mPrune.Enable() - mCheck.Enable() - mUnlock.Enable() } } -- 2.51.2