fix bug scan ip
This commit is contained in:
7
main.py
7
main.py
@@ -457,11 +457,14 @@ class App(QWidget):
|
||||
lbl.setStyleSheet("color: #cdd6f4; font-weight: bold;")
|
||||
return lbl
|
||||
|
||||
# IPs permanently hidden from the device list (never shown in UI)
|
||||
_HIDDEN_IPS = {"192.168.11.102"}
|
||||
|
||||
def _get_filtered_devices(self):
|
||||
"""Return devices filtered based on show_all checkbox."""
|
||||
if self.show_all_cb.isChecked():
|
||||
return list(self.all_devices)
|
||||
excluded = {self.local_ip, self.gateway_ip}
|
||||
return [d for d in self.all_devices if d["ip"] not in self._HIDDEN_IPS]
|
||||
excluded = {self.local_ip, self.gateway_ip} | self._HIDDEN_IPS
|
||||
return [d for d in self.all_devices if d["ip"] not in excluded]
|
||||
|
||||
def _refresh_table(self):
|
||||
|
||||
Reference in New Issue
Block a user