ws_cb: first check if there are panels

This commit is contained in:
alfrix 2022-11-14 05:25:57 -03:00
parent 1e6a9ec8ae
commit 731a78b2f2

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):