mirror of https://github.com/xzeldon/htop.git
Move treeView setting to make status bar item correct when using --sort-key, patch from @cgzones
Closes #340
This commit is contained in:
parent
952ee9cd77
commit
95f553b10c
10
htop.c
10
htop.c
|
@ -298,6 +298,11 @@ int main(int argc, char** argv) {
|
||||||
settings->highlightChanges = true;
|
settings->highlightChanges = true;
|
||||||
if (flags.highlightDelaySecs != -1)
|
if (flags.highlightDelaySecs != -1)
|
||||||
settings->highlightDelaySecs = flags.highlightDelaySecs;
|
settings->highlightDelaySecs = flags.highlightDelaySecs;
|
||||||
|
if (flags.sortKey > 0) {
|
||||||
|
settings->sortKey = flags.sortKey;
|
||||||
|
settings->treeView = false;
|
||||||
|
settings->direction = 1;
|
||||||
|
}
|
||||||
|
|
||||||
CRT_init(settings->delay, settings->colorScheme, flags.allowUnicode);
|
CRT_init(settings->delay, settings->colorScheme, flags.allowUnicode);
|
||||||
|
|
||||||
|
@ -306,11 +311,6 @@ int main(int argc, char** argv) {
|
||||||
|
|
||||||
MainPanel_updateTreeFunctions(panel, settings->treeView);
|
MainPanel_updateTreeFunctions(panel, settings->treeView);
|
||||||
|
|
||||||
if (flags.sortKey > 0) {
|
|
||||||
settings->sortKey = flags.sortKey;
|
|
||||||
settings->treeView = false;
|
|
||||||
settings->direction = 1;
|
|
||||||
}
|
|
||||||
ProcessList_printHeader(pl, Panel_getHeader((Panel*)panel));
|
ProcessList_printHeader(pl, Panel_getHeader((Panel*)panel));
|
||||||
|
|
||||||
State state = {
|
State state = {
|
||||||
|
|
Loading…
Reference in New Issue