base: disable shutdown shortcut when in panel
This commit is contained in:
1 parent
878d567404
commit
b7d9517008
1 file changed
+1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user