base: disable shutdown shortcut when in panel
This commit is contained in:
parent
878d567404
commit
b7d9517008
@ -264,6 +264,7 @@ class BasePanel(ScreenPanel):
|
|||||||
)
|
)
|
||||||
self.control['shortcut'].set_visible(show)
|
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.shorcut['panel'])
|
||||||
|
self.set_control_sensitive(self._screen._cur_panels[-1] != self.shutdown['panel'], control='shutdown')
|
||||||
|
|
||||||
def show_printer_select(self, show=True):
|
def show_printer_select(self, show=True):
|
||||||
self.control['printer_select'].set_visible(show)
|
self.control['printer_select'].set_visible(show)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user