panels: remove initialize from the panels that do not have a menu

This commit is contained in:
alfrix
2022-11-17 07:53:17 -03:00
parent 972a09df41
commit 45ab86204b
29 changed files with 48 additions and 98 deletions

View File

@@ -30,10 +30,6 @@ class NetworkPanel(ScreenPanel):
logging.info(f"Found wireless interfaces: {self.wireless_interfaces}")
self.wifi = WifiManager(self.wireless_interfaces[0])
def initialize(self, menu):
grid = self._gtk.HomogeneousGrid()
grid.set_hexpand(True)
# Get IP Address
gws = netifaces.gateways()
if "default" in gws and netifaces.AF_INET in gws["default"]: