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:
Yaroslav Chvanov
2023-07-18 21:26:51 +03:00
parent 1e426df58e
commit 042dd619a3

View File

@@ -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)