Skip to content

Commit

Permalink
ui,stats: simplified columns configuration
Browse files Browse the repository at this point in the history
There're only two points where we need to reconfigure the columns:
on showEvent() and when saving the settings.

There should be a slight performance improvement.
  • Loading branch information
gustavo-iniguez-goya committed Dec 18, 2024
1 parent 54ef3f6 commit abdfd39
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/opensnitch/dialogs/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ def showEvent(self, event):
self._add_rulesTree_fw_chains()
self.setWindowTitle(window_title)
self._refresh_active_table()
self._show_columns()

def eventFilter(self, source, event):
if event.type() == QtCore.QEvent.KeyPress:
Expand Down Expand Up @@ -2786,5 +2787,3 @@ def setQuery(self, model, q):
self.labelRowsCount.setText("")
except Exception as e:
print(self._address, "setQuery() exception: ", e)
finally:
self._show_columns()

0 comments on commit abdfd39

Please sign in to comment.