mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-12-03 16:49:12 +00:00
commit
4d4ff5d058
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ void bar_item_script_update(struct bar_item* bar_item, bool forced) {
|
|||
if (!bar_item->scripting || (bar_item->update_frequency == 0 && !forced)) return;
|
||||
if (strcmp(bar_item->script, "") != 0) {
|
||||
bar_item->counter++;
|
||||
if (bar_item->update_frequency < bar_item->counter || forced) {
|
||||
if (bar_item->update_frequency <= bar_item->counter || forced) {
|
||||
bar_item->counter = 0;
|
||||
fork_exec(bar_item->script, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue