network: fix not returning with back if panel was not initialized

This commit is contained in:
Alfredo Monclus committed 2024-06-10 19:59:00 -03:00
1 parent 861b617ddb
commit e8e046469b
1 file changed
+1 -1
+1 -1
View File
@@ -14,6 +14,7 @@ class Panel(ScreenPanel):
def __init__(self, screen, title):
title = title or _("Network")
super().__init__(screen, title)
self.show_add = False
try:
self.sdbus_nm = SdbusNm(self.popup_callback)
except Exception as e:
@@ -41,7 +42,6 @@ class Panel(ScreenPanel):
self.content.add(self.error_box)
self._screen.panels_reinit.append(self._screen._cur_panels[-1])
return
self.show_add = False
self.update_timeout = None
self.network_list = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, hexpand=True, vexpand=True)
self.network_rows = {}