mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
ui: enable HighDpiPixmaps, fixed nodes list
- Enable high-dpi pixmaps for icons. - Fixed nodes connections listing when accesing from the Events view.
This commit is contained in:
parent
c7ee55ab1a
commit
30a8c90829
2 changed files with 3 additions and 2 deletions
|
@ -77,6 +77,8 @@ Examples:
|
|||
translator = load_translations()
|
||||
app = QtWidgets.QApplication(sys.argv)
|
||||
app.installTranslator(translator)
|
||||
if hasattr(QtCore.Qt, 'AA_UseHighDpiPixmaps'):
|
||||
app.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, True)
|
||||
thm = Themes.instance()
|
||||
thm.load_theme(app)
|
||||
|
||||
|
|
|
@ -1333,8 +1333,7 @@ class StatsDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
|
|||
self.LAST_SELECTED_ITEM = row.model().index(row.row(), self.COL_NODE).data()
|
||||
self.tabWidget.setCurrentIndex(cur_idx)
|
||||
self._set_active_widgets(True, str(data))
|
||||
p, addr = self._nodes.get_addr(data)
|
||||
self._set_nodes_query(addr)
|
||||
self._set_nodes_query(data)
|
||||
|
||||
elif idx == StatsDialog.COL_RULES:
|
||||
cur_idx = self.TAB_RULES
|
||||
|
|
Loading…
Add table
Reference in a new issue