Skip to content

Commit

Permalink
fix performance breaker
Browse files Browse the repository at this point in the history
*after every command*, the tray icon was falsely updated even though nothing changed. This slowed down mere execution speed by factor x20 - x100.
  • Loading branch information
phil294 committed Nov 30, 2022
1 parent 2601ef0 commit 6131098
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/run/display/gui.cr
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ module Run
act { @tray.not_nil!.from_icon_name = "content-loading-symbolic" }
end
def thread_unpause
return if ! @is_pause
@is_pause = false
if @is_suspend
suspend
Expand Down

0 comments on commit 6131098

Please sign in to comment.