mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-12-03 16:49:12 +00:00
new default refresh_freq = 0, which will never be triggered
This commit is contained in:
parent
58c406838b
commit
6d3469405b
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ void bar_item_init(struct bar_item* bar_item, struct bar_item* default_item) {
|
|||
bar_item->counter = 0;
|
||||
bar_item->name = "";
|
||||
bar_item->type = BAR_ITEM;
|
||||
bar_item->update_frequency = 1000;
|
||||
bar_item->update_frequency = 0;
|
||||
bar_item->cache_scripts = false;
|
||||
bar_item->script = "";
|
||||
bar_item->on_click_script = "";
|
||||
|
@ -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) {
|
||||
if (!bar_item->enabled) return;
|
||||
if (!bar_item->enabled || bar_item->update_frequency == 0) return;
|
||||
if (strcmp(bar_item->script, "") != 0) {
|
||||
bar_item->counter++;
|
||||
if (bar_item->update_frequency < bar_item->counter || forced) {
|
||||
|
|
Loading…
Reference in a new issue