base: disable shutdown shortcut when in panel

This commit is contained in:
alfrix committed 2024-03-09 14:31:38 -03:00
1 parent 878d567404
commit b7d9517008
1 file changed
+1
+1
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)