forked from bitcoinafterlife/bal-electrum-plugin
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:
@@ -908,7 +908,11 @@ 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()
|
||||||
|
if not basic:
|
||||||
|
# Advanced mode: fields are always editable.
|
||||||
|
editable_dates = True
|
||||||
|
else:
|
||||||
try:
|
try:
|
||||||
editable_dates = self.bal_window.bal_plugin.EDITABLE_DATES.get()
|
editable_dates = self.bal_window.bal_plugin.EDITABLE_DATES.get()
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
Reference in New Issue
Block a user