mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-23 11:53:02 +00:00
reduce cpu utilization by eliminating unneeded freeze/unfreeze calls
This commit is contained in:
parent
4da74adf6c
commit
3ababcdab3
2 changed files with 7 additions and 5 deletions
|
@ -237,4 +237,3 @@ bool alias_parse_sub_domain(struct alias* alias, FILE* rsp, struct token propert
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -456,10 +456,13 @@ void bar_manager_update(struct bar_manager* bar_manager, bool forced) {
|
|||
forced,
|
||||
NULL );
|
||||
}
|
||||
bar_manager_freeze(bar_manager);
|
||||
bar_manager->frozen = false;
|
||||
if (needs_refresh) bar_manager_refresh(bar_manager, false);
|
||||
bar_manager_unfreeze(bar_manager);
|
||||
|
||||
if (needs_refresh) {
|
||||
bar_manager_freeze(bar_manager);
|
||||
bar_manager->frozen = false;
|
||||
bar_manager_refresh(bar_manager, false);
|
||||
bar_manager_unfreeze(bar_manager);
|
||||
}
|
||||
}
|
||||
|
||||
void bar_manager_reset(struct bar_manager* bar_manager) {
|
||||
|
|
Loading…
Reference in a new issue