refactor printer initialization and connection handling

removes the lag while trying to connect
cleaner code, seems faster
This commit is contained in:
alfrix
2024-04-30 10:56:32 -03:00
parent 032760e118
commit ad2df873d3
8 changed files with 120 additions and 115 deletions

View File

@@ -38,4 +38,4 @@ class Panel(ScreenPanel):
self._screen.base_panel.action_bar.hide()
GLib.timeout_add(100, self._screen.base_panel.action_bar.hide)
if self._screen._ws:
self._screen._ws.connecting = False
self._screen.close_websocket()