Skip to content

Commit

Permalink
refactor: Code cleanup (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonjek authored Apr 10, 2024
1 parent c5815ed commit 613730d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions internal/tray/tray.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ func (t *Tray) onReady() {
case <-t.mEnable.ClickedCh:
t.conf.ToggleEnableDisable()
t.applyEnableDisable()
go t.mouseController.MoveMouse()
case <-t.mDisable.ClickedCh:
t.conf.ToggleEnableDisable()
t.applyEnableDisable()
Expand All @@ -106,10 +105,8 @@ func (t *Tray) onReady() {
}
}()

// Start moving the mouse in a circle immediately if enabled
if t.conf.Enabled {
go t.mouseController.MoveMouse()
}
// Start moving the mouse if app enabled
go t.mouseController.MoveMouse()
}

// Adds a submenu item for selecting a working hours interval
Expand Down

0 comments on commit 613730d

Please sign in to comment.