mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-23 20:03:10 +00:00
hotfix for update_freq = 0 with forced refresh
This commit is contained in:
parent
6d3469405b
commit
17144d3940
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ void bar_item_init(struct bar_item* bar_item, struct bar_item* default_item) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void bar_item_script_update(struct bar_item* bar_item, bool forced) {
|
void bar_item_script_update(struct bar_item* bar_item, bool forced) {
|
||||||
if (!bar_item->enabled || bar_item->update_frequency == 0) return;
|
if (!bar_item->enabled || (bar_item->update_frequency == 0 && !forced)) return;
|
||||||
if (strcmp(bar_item->script, "") != 0) {
|
if (strcmp(bar_item->script, "") != 0) {
|
||||||
bar_item->counter++;
|
bar_item->counter++;
|
||||||
if (bar_item->update_frequency < bar_item->counter || forced) {
|
if (bar_item->update_frequency < bar_item->counter || forced) {
|
||||||
|
|
Loading…
Reference in a new issue