mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Add key to pause process list updates
This commit is contained in:

committed by
cgzones

parent
fc301b7447
commit
b47bc667a2
3
htop.c
3
htop.c
@ -283,6 +283,7 @@ int main(int argc, char** argv) {
|
||||
.pl = pl,
|
||||
.panel = (Panel*) panel,
|
||||
.header = header,
|
||||
.pauseProcessUpdate = false,
|
||||
};
|
||||
|
||||
MainPanel_setState(panel, &state);
|
||||
@ -290,7 +291,7 @@ int main(int argc, char** argv) {
|
||||
setCommFilter(&state, &(flags.commFilter));
|
||||
}
|
||||
|
||||
ScreenManager* scr = ScreenManager_new(0, header->height, 0, -1, HORIZONTAL, header, settings, true);
|
||||
ScreenManager* scr = ScreenManager_new(0, header->height, 0, -1, HORIZONTAL, header, settings, &state, true);
|
||||
ScreenManager_add(scr, (Panel*) panel, -1);
|
||||
|
||||
ProcessList_scan(pl);
|
||||
|
Reference in New Issue
Block a user