Compare commits
21 Commits
Author | SHA1 | Date | |
---|---|---|---|
809672db45 | |||
19ae243e30 | |||
7817701a23 | |||
2676709ed5 | |||
eb1e26a72d | |||
d7698fd423 | |||
d6fcc79a20 | |||
69bcfa4bd0 | |||
2dba9f8ee2 | |||
03cd37229e | |||
cf7cafefbc | |||
dc3478b48c | |||
02c7556cda | |||
6bfa42e036 | |||
1a87ced3f5 | |||
629416d1f2 | |||
9e518b0516 | |||
661f89101b | |||
eeed801645 | |||
482d926ce1 | |||
c5b4519cc6 |
@ -121,7 +121,6 @@ panel: advanced
|
||||
name: {{ gettext('Network') }}
|
||||
icon: network
|
||||
panel: network
|
||||
enable: {{ network.wifi_available }}
|
||||
|
||||
[menu __main more notifications]
|
||||
name: {{ gettext('Notifications') }}
|
||||
|
@ -63,7 +63,6 @@ panel: limits
|
||||
name: {{ gettext('Network') }}
|
||||
icon: network
|
||||
panel: network
|
||||
enable: {{ network.wifi_available }}
|
||||
|
||||
[menu __print settings]
|
||||
name: {{ gettext('More') }}
|
||||
|
@ -15,7 +15,6 @@ enable: {{ moonraker.power_devices.count > 0 }}
|
||||
name: {{ gettext('Network') }}
|
||||
icon: network
|
||||
panel: network
|
||||
enable: {{ network.wifi_available }}
|
||||
|
||||
[menu __splashscreen updater]
|
||||
name: {{ gettext('Update') }}
|
||||
|
@ -236,16 +236,6 @@ class Printer:
|
||||
return None
|
||||
|
||||
def get_printer_status_data(self):
|
||||
wifi_available = False
|
||||
try:
|
||||
from ks_includes.sdbus_nm import SdbusNm
|
||||
|
||||
sdbus_nm = SdbusNm(lambda x: None)
|
||||
wifi_available = sdbus_nm.wifi if sdbus_nm else False
|
||||
except Exception as e:
|
||||
logging.debug(f"Failed to detect WiFi module: {e}")
|
||||
wifi_available = False
|
||||
|
||||
return {
|
||||
"moonraker": {
|
||||
"power_devices": {"count": len(self.get_power_devices())},
|
||||
@ -262,10 +252,7 @@ class Printer:
|
||||
"gcode_macros": {"count": len(self.get_gcode_macros()), "list": self.get_gcode_macros()},
|
||||
"leds": {"count": self.ledcount},
|
||||
"config_sections": list(self.config.keys()),
|
||||
},
|
||||
"network": {
|
||||
"wifi_available": wifi_available,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
def get_leds(self):
|
||||
|
@ -111,6 +111,7 @@ class Panel(ScreenPanel):
|
||||
self._screen.show_popup_message(_("No wireless interface has been found"), level=2)
|
||||
self.labels["networkinfo"] = Gtk.Label()
|
||||
scroll.add(self.labels["networkinfo"])
|
||||
self.update_single_network_info()
|
||||
|
||||
self.labels["main_box"].pack_start(scroll, True, True, 0)
|
||||
self.content.add(self.labels["main_box"])
|
||||
|
Loading…
x
Reference in New Issue
Block a user