CTRL+W and CTRL+Q stops local instance before closing the app
This commit is contained in:
parent
3b95d369b8
commit
fd92a86c5e
@ -53,7 +53,7 @@ class AlpacaApplication(Adw.Application):
|
||||
def __init__(self, version):
|
||||
super().__init__(application_id='com.jeffser.Alpaca',
|
||||
flags=Gio.ApplicationFlags.DEFAULT_FLAGS)
|
||||
self.create_action('quit', lambda *_: self.quit(), ['<primary>w', '<primary>q'])
|
||||
self.create_action('quit', lambda *_: self.props.active_window.closing_app(None), ['<primary>w', '<primary>q'])
|
||||
self.create_action('preferences', lambda *_: AlpacaWindow.show_preferences_dialog(self.props.active_window), ['<primary>comma'])
|
||||
self.create_action('about', self.on_about_action)
|
||||
self.version = version
|
||||
|
@ -345,6 +345,7 @@ class AlpacaWindow(Adw.ApplicationWindow):
|
||||
else:
|
||||
logger.info("Closing app...")
|
||||
local_instance.stop()
|
||||
self.get_application().quit()
|
||||
|
||||
@Gtk.Template.Callback()
|
||||
def model_spin_changed(self, spin):
|
||||
|
Loading…
x
Reference in New Issue
Block a user