Skip to content

Commit

Permalink
Remove whitespace to please pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
SqAtx authored and diegogangl committed Sep 23, 2024
1 parent 8a8d749 commit 3182d26
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions GTG/gtk/browser/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,22 +255,22 @@ def _set_actions(self):

if accel is not None:
self.app.set_accels_for_action(*accel)


# Stateful actions from now on
sort_variant = GLib.Variant.new_string('Title')
sort_action = Gio.SimpleAction.new_stateful('sort',
sort_variant.get_type(),
sort_action = Gio.SimpleAction.new_stateful('sort',
sort_variant.get_type(),
sort_variant)

sort_action.connect('change-state', self.on_sort)
self.add_action(sort_action)

order_variant = GLib.Variant.new_string('ASC')
order_action = Gio.SimpleAction.new_stateful('sort_order',
order_variant.get_type(),
order_action = Gio.SimpleAction.new_stateful('sort_order',
order_variant.get_type(),
order_variant)

order_action.connect('change-state', self.on_sort_order)
self.add_action(order_action)

Expand Down Expand Up @@ -1303,7 +1303,7 @@ def on_modify_tags(self, action, params):


def on_sort(self, action, value) -> None:

action.set_state(value)
value_str = value.get_string()

Expand All @@ -1312,7 +1312,7 @@ def on_sort(self, action, value) -> None:


def on_sort_order(self, action, value) -> None:

action.set_state(value)
value_str = value.get_string()

Expand Down

0 comments on commit 3182d26

Please sign in to comment.