mirror of
https://github.com/Xevion/HATray.git
synced 2025-12-10 02:07:23 -06:00
refactor: improve logging, no error on null state transitions
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user