ws_cb: first check if there are panels

This commit is contained in:
alfrix committed 2022-11-18 00:53:53 -03:00
1 parent 1e6a9ec8ae
commit 731a78b2f2
1 file changed
+1 -1
+1 -1
View File
@@ -882,7 +882,7 @@ class KlipperScreen(Gtk.Window):
)
self.base_panel.process_update(action, data)
if self._cur_panels[-1] in self.subscriptions:
if self._cur_panels and self._cur_panels[-1] in self.subscriptions:
self.panels[self._cur_panels[-1]].process_update(action, data)
def _confirm_send_action(self, widget, text, method, params=None):