refactor: improve logging, no error on null state transitions

This commit is contained in:
2025-08-01 14:00:26 -05:00
parent b6a333ae2d
commit 21463775c0
4 changed files with 25 additions and 14 deletions

View File

@@ -60,7 +60,8 @@ func (t *Tray) SetIcon(icon IconReference) error {
func (t *Tray) Start(title string) error {
if t.active {
return fmt.Errorf("tray is already active")
t.logger.Warn("tray is already active")
return nil
}
t.logger.Info("attempting to start systray", "title", title)