btop now reacts to SIGUSR1 by reloading config

This commit is contained in:
Martin Oliver Pitoňák 2024-01-16 19:02:20 +01:00
parent b2df50396b
commit 67a674e850
No known key found for this signature in database
GPG key ID: 445F0786A360FC99

View file

@ -362,7 +362,12 @@ void _signal_handler(const int sig) {
term_resize();
break;
case SIGUSR1:
// Input::poll interrupt
vector<string> warnings;
Config::load(Config::conf_file, warnings);
Theme::setTheme();
Draw::banner_gen(0, 0, false, true);
Draw::calcSizes();
Runner::run("all", false, true);
break;
}
}