Refactor state control variables.

This commit is contained in:
Hisham Muhammad
2015-03-22 02:50:40 -03:00
parent 4e064e0db7
commit 09c7152990
4 changed files with 59 additions and 52 deletions

View File

@ -98,10 +98,10 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) {
ProcessList_printHeader(this->state->pl, Panel_getHeader(super));
}
if (reaction & HTOP_REFRESH) {
result |= REFRESH;
result |= REDRAW;
}
if (reaction & HTOP_RECALCULATE) {
result |= RECALCULATE;
result |= RESCAN;
}
if (reaction & HTOP_SAVE_SETTINGS) {
this->state->settings->changed = true;