all repos — tint2 @ 04ba5a661716120925e7b229c8343712901096b3

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Do not spin when battery is unplugged
o9000 mrovi9000@gmail.com
commit

04ba5a661716120925e7b229c8343712901096b3

parent

f5f8792d420bafc90b293f4b2b3f2e621f8965cb

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/battery/battery.csrc/battery/battery.c

@@ -225,7 +225,8 @@ return;

battery_found = battery_os_init(); - change_timer(&battery_timer, true, battery_found ? 10 : 30000, 30000, update_battery_tick, 0); + if (!battery_timer.enabled_) + change_timer(&battery_timer, true, 30000, 30000, update_battery_tick, 0); update_battery(); }

@@ -272,6 +273,7 @@ if (!bat1_format && !bat2_format) {

bat1_format = strdup("%p"); bat2_format = strdup("%t"); } + update_battery_tick(NULL); } void battery_init_fonts()