mirror of https://github.com/aristocratos/btop.git
btop now reacts to SIGUSR1 by reloading config
This commit is contained in:
parent
b2df50396b
commit
67a674e850
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue