Skip to content

Commit

Permalink
Don't change combobox on mouse scroll
Browse files Browse the repository at this point in the history
This causes problems and is inconvenient, easy to change
something by accident

fixes QubesOS/qubes-issues#9675
  • Loading branch information
marmarta committed Jan 3, 2025
1 parent a3e4d17 commit 8643f9b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qubes_config/global_config/global_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,12 @@ def perform_setup(self):
self.builder.get_object('thisdevice_scrolled_window'),
])

# workaround the uncomfortable behavior with comboboxes: combobox
# should not change item ID on random scrolling around
for obj in self.builder.get_objects():
if isinstance(obj, (Gtk.ComboBox, Gtk.ComboBoxText)):
obj.connect("scroll-event", lambda *args: True)

self.progress_bar_dialog.update_progress(1)
self.progress_bar_dialog.hide()
self.progress_bar_dialog.destroy()
Expand Down

0 comments on commit 8643f9b

Please sign in to comment.