mirror of
https://github.com/libratbag/piper.git
synced 2026-05-19 12:26:00 -04:00
resolutionrow: disable the "disable" button for the default resolution
Ideally I would like it to also show the reason for example on hover, but this is already better.
This commit is contained in:
@@ -131,7 +131,7 @@ class ResolutionRow(Gtk.ListBoxRow):
|
||||
self.active_button.set_sensitive(True)
|
||||
if self.CAP_DISABLE:
|
||||
with self.disable_button.handler_block(self._disabled_button_handler):
|
||||
self.disable_button.set_sensitive(True)
|
||||
self.disable_button.set_sensitive(not resolution.is_default)
|
||||
if resolution.is_disabled:
|
||||
self.disable_button.set_active(True)
|
||||
self.active_button.set_sensitive(False)
|
||||
|
||||
Reference in New Issue
Block a user