Skip to content

Commit 74a7cb8

Browse files
ui,stats: fixed restoring nodes detail view
When showing/hiding the main window by clicking on the systray icon, if the user was reviewing the connections of a node before hiding the window, the node table was not restored again. We changed a few weeks ago how the window is shown (showEvent() -> show()), so this is an unexpected error from that change.
1 parent 9b33f7b commit 74a7cb8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ui/opensnitch/dialogs/stats.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -978,8 +978,6 @@ def _load_settings(self):
978978
nodes_splitter_pos = self._cfg.getSettings(Config.STATS_NODES_SPLITTER_POS)
979979
if type(nodes_splitter_pos) == QtCore.QByteArray:
980980
self.nodesSplitter.restoreState(nodes_splitter_pos)
981-
nodesSizes = self.nodesSplitter.sizes()
982-
self.nodesSplitter.setVisible(not self.IN_DETAIL_VIEW[self.TAB_NODES] and nodesSizes[0] > 0)
983981
else:
984982
w = self.nodesSplitter.width()
985983
self.nodesSplitter.setSizes([w, 0])

0 commit comments

Comments
 (0)