menu: allow users to unset variables for replacing panels

This commit is contained in:
alfrix 2023-09-27 23:03:28 -03:00
parent 0fada32c4b
commit a475a184a9

View File

@ -81,10 +81,10 @@ class Panel(ScreenPanel):
b = self._gtk.Button(icon, name, style or f"color{i % 4 + 1}", scale=scale)
if item['panel'] is not None:
if item['panel']:
panel = self._screen.env.from_string(item['panel']).render(printer)
b.connect("clicked", self.menu_item_clicked, item)
elif item['method'] is not None:
elif item['method']:
params = {}
if item['params'] is not False: