MCPcopy
hub / github.com/evilsocket/opensnitch / _cb_combo_netstat_changed

Method _cb_combo_netstat_changed

ui/opensnitch/dialogs/stats.py:1852–1865  ·  view source on GitHub ↗
(self, combo, idx)

Source from the content-addressed store, hash-verified

1850 self.setQuery(model, qstr)
1851
1852 def _cb_combo_netstat_changed(self, combo, idx):
1853 refreshIndex = self.comboNetstatInterval.currentIndex()
1854 self._unmonitor_node_netstat(self.LAST_NETSTAT_NODE)
1855 if refreshIndex > 0:
1856 self._monitor_node_netstat()
1857
1858 if combo == 2:
1859 self._cfg.setSettings(Config.STATS_NETSTAT_FILTER_PROTO, self.comboNetstatProto.currentIndex())
1860 elif combo == 3:
1861 self._cfg.setSettings(Config.STATS_NETSTAT_FILTER_FAMILY, self.comboNetstatFamily.currentIndex())
1862 elif combo == 4:
1863 self._cfg.setSettings(Config.STATS_NETSTAT_FILTER_STATE, self.comboNetstatStates.currentIndex())
1864
1865 nIdx = self.comboNetstatNodes.currentIndex()
1866
1867 def _cb_limit_combo_changed(self, idx):
1868 if self.tabWidget.currentIndex() == self.TAB_MAIN:

Callers 1

__init__Method · 0.95

Calls 3

_monitor_node_netstatMethod · 0.95
setSettingsMethod · 0.80

Tested by

no test coverage detected