From 3182d2635a11daca05c904aaedf57ffa0746adee Mon Sep 17 00:00:00 2001 From: Kevin Guillaumond Date: Sat, 21 Sep 2024 14:25:10 -0700 Subject: [PATCH] Remove whitespace to please pre-commit --- GTG/gtk/browser/main_window.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/GTG/gtk/browser/main_window.py b/GTG/gtk/browser/main_window.py index 74244452c..eb2c2aa2b 100644 --- a/GTG/gtk/browser/main_window.py +++ b/GTG/gtk/browser/main_window.py @@ -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) @@ -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() @@ -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()