Verified Commit be50b435 authored by M. Sandoval's avatar M. Sandoval 🥑
Browse files

settings_dialog: Simplify fns signatures

parent 0bf7ee27
......@@ -105,8 +105,8 @@ class Application(Gtk.Application):
simple_action.connect("activate", callback)
self.add_action(simple_action)
def show_settings(self, action, param):
SettingsDialog(self.window).on_settings_menu_clicked(action, param)
def show_settings(self, _action: Gio.Action, _param: GLib.Variant) -> None:
SettingsDialog(self.window).present()
def show_about_dialog(self, _action: Gio.SimpleAction, _param: None) -> None:
"""Invoked when we click "about" in the main menu"""
......
......@@ -32,10 +32,7 @@ class SettingsDialog(Handy.PreferencesWindow):
self.window = window
self.props.transient_for = self.window
def on_settings_menu_clicked(self, _action, _param):
self._set_config_values()
self.present()
def _set_config_values(self):
# pylint: disable=too-many-locals
......
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