base: disable shutdown shortcut when in panel

This commit is contained in:
alfrix 2024-03-09 14:31:21 -03:00
parent 878d567404
commit b7d9517008

View File

@ -264,6 +264,7 @@ class BasePanel(ScreenPanel):
)
self.control['shortcut'].set_visible(show)
self.set_control_sensitive(self._screen._cur_panels[-1] != self.shorcut['panel'])
self.set_control_sensitive(self._screen._cur_panels[-1] != self.shutdown['panel'], control='shutdown')
def show_printer_select(self, show=True):
self.control['printer_select'].set_visible(show)