Commit b8af0e68 authored by André's avatar André Committed by Philipp Hörist

Show close button on adhoc error page

parent ce40feff
Pipeline #5352 passed with stages
in 3 minutes and 31 seconds
......@@ -89,6 +89,11 @@ class AdHocCommand(Gtk.Assistant):
self._buttons['cancel'] = cancel
self.add_action_widget(cancel)
close = Gtk.Button.new_with_mnemonic(_('_Close'))
close.connect('clicked', self._on_cancel)
self._buttons['close'] = close
self.add_action_widget(close)
complete = Gtk.Button(label=_('Finish'))
complete.action = AdHocAction.COMPLETE
complete.connect('clicked', self._execute_action)
......@@ -199,6 +204,7 @@ class AdHocCommand(Gtk.Assistant):
self.get_nth_page(Page.ERROR).set_text(error_text)
self.get_nth_page(Page.ERROR).show_command_button = False
self.set_current_page(Page.ERROR)
self._buttons['close'].show()
return
self.get_nth_page(Page.COMMANDS).add_commands(commands)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment