-
-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PCP-related changes for column handling; code cleanups #1182
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid the merge commits inside the PR by rebasing onto some recent commit after the last merge.
I don't quite like the global variable in the ActiveColumnsPanel commit as it introduces uncontrolled global state and thus state dependencies.
char* currentScreen = newFocus->ss->name; | ||
DynamicScreen_availableColumns(currentScreen); | ||
} else { | ||
Panel* availableColumns = AvailableColumnsPanel_get(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing NULL check.
} | ||
|
||
void PCPDynamicScreens_availableColumns(Hashtable* screens, char* currentScreen) { | ||
Panel* availableColumns = AvailableColumnsPanel_get(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing NULL check.
for (unsigned int j = 0; j < screen->totalColumns; j++) { | ||
PCPDynamicColumn* column = &screen->columns[j]; | ||
|
||
column->id = columns->offset + columns->cursor; | ||
columns->cursor++; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this cursor still necessary when we index over the array instead of the cursor?
f8620ef
to
5c14970
Compare
'actionTogglePauseProcessUpdate' -> 'actionTogglePauseUpdate' 'pauseProcessUpdate' -> 'pauseUpdate' 'hideProcessSelection' -> 'hideSelection' 'hideProcessSelection' -> 'hideSelection' Signed-off-by: Sohaib Mohamed <[email protected]>
Signed-off-by: Sohaib Mohamed <[email protected]>
Signed-off-by: Sohaib Mohamed <[email protected]>
5c14970
to
137ff12
Compare
No description provided.