Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't change combobox on mouse scroll #241

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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