From a13acce548ce299824676b445bd4e667037a9d00 Mon Sep 17 00:00:00 2001 From: dan <64416644+brittle-bones@users.noreply.github.com> Date: Sun, 26 May 2024 02:23:39 +0100 Subject: [PATCH] Toggle allow editing of DPI entry if 'disable' button clicked. --- piper/resolutionrow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/piper/resolutionrow.py b/piper/resolutionrow.py index d8444193..eeaade0b 100644 --- a/piper/resolutionrow.py +++ b/piper/resolutionrow.py @@ -108,7 +108,9 @@ def _on_change_value( def _on_disable_button_toggled(self, togglebutton: Gtk.Button) -> None: # The disable button has been toggled, update RatbagdResolution. - self._resolution.set_disabled(togglebutton.get_active()) + is_active = togglebutton.get_active() + self._resolution.set_disabled(is_active) + self.dpi_entry.set_editable(not is_active) # Update UI self._on_status_changed(self._resolution, pspec=None)