fix: keep will-settings fields editable in advanced mode

In advanced mode the locktime, check-alive and fees fields should always
be editable regardless of the EDITABLE_DATES setting. Only basic mode
respects that setting.
This commit is contained in:
2026-06-29 00:01:25 -04:00
parent b8e6c240be
commit 7004953ce2

View File

@@ -908,13 +908,17 @@ class WillSettingsWidget(QWidget):
if not self.read_only: if not self.read_only:
return return
editable_dates = False basic = self.bal_window.bal_plugin.is_basic_mode()
try: if not basic:
editable_dates = self.bal_window.bal_plugin.EDITABLE_DATES.get() # Advanced mode: fields are always editable.
except Exception: editable_dates = True
# If the setting cannot be read, fall back to the safe default else:
# (dates remain read-only outside the wizard). try:
editable_dates = False editable_dates = self.bal_window.bal_plugin.EDITABLE_DATES.get()
except Exception:
# If the setting cannot be read, fall back to the safe default
# (dates remain read-only outside the wizard).
editable_dates = False
self.widgets["locktime"].set_read_only(not editable_dates) self.widgets["locktime"].set_read_only(not editable_dates)
self.widgets["threshold"].set_read_only(not editable_dates) self.widgets["threshold"].set_read_only(not editable_dates)