Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
amit9838 authored May 8, 2024
2 parents e2531ed + 63e6b07 commit 7f83711
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mousam.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,12 @@ def _on_locations_clicked(self, *args, **kwargs):
adw_preferences_window = WeatherLocations(self.main_window)
adw_preferences_window.show()


def _show_shortcuts_dialog(self,*args, **kwargs):
dialog = ShortcutsDialog(self)
dialog.show()


#Def shortcuts key listeners
def on_key_press(self, key_controller, keyval, keycode, state,*args):
if state & Gdk.ModifierType.CONTROL_MASK:
Expand All @@ -384,4 +386,3 @@ def on_key_press(self, key_controller, keyval, keycode, state,*args):
GLib.idle_add(self._on_locations_clicked)
if keyval == Gdk.KEY_comma:
GLib.idle_add(self._on_preferences_clicked)

0 comments on commit 7f83711

Please sign in to comment.