From 7004953ce2e90c130b489d7b1c2db210e96f8649 Mon Sep 17 00:00:00 2001 From: kaibot Date: Mon, 29 Jun 2026 00:01:25 -0400 Subject: [PATCH] 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. --- bal/gui/qt/widgets.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/bal/gui/qt/widgets.py b/bal/gui/qt/widgets.py index 25aa520..9fa7c61 100644 --- a/bal/gui/qt/widgets.py +++ b/bal/gui/qt/widgets.py @@ -908,13 +908,17 @@ class WillSettingsWidget(QWidget): if not self.read_only: return - editable_dates = False - try: - 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 + basic = self.bal_window.bal_plugin.is_basic_mode() + if not basic: + # Advanced mode: fields are always editable. + editable_dates = True + else: + try: + 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["threshold"].set_read_only(not editable_dates)