From 1c2c016f55afe7e89df46e828e424bc9fa1773b2 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Mon, 14 Oct 2024 12:04:14 +0200 Subject: [PATCH] coldcard: small fixes --- electrum/gui/qt/wallet_info_dialog.py | 3 +++ electrum/plugins/coldcard/qt.py | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qt/wallet_info_dialog.py b/electrum/gui/qt/wallet_info_dialog.py index 96990651e..cccf93b01 100644 --- a/electrum/gui/qt/wallet_info_dialog.py +++ b/electrum/gui/qt/wallet_info_dialog.py @@ -162,6 +162,9 @@ class WalletInfoDialog(WindowModalDialog): vbox.addStretch(1) btn_export_info = run_hook('wallet_info_buttons', window, self) + if btn_export_info is None: + btn_export_info = [] + btn_close = CloseButton(self) btns = Buttons(*btn_export_info, btn_close) vbox.addLayout(btns) diff --git a/electrum/plugins/coldcard/qt.py b/electrum/plugins/coldcard/qt.py index 7567a9ca5..962511ded 100644 --- a/electrum/plugins/coldcard/qt.py +++ b/electrum/plugins/coldcard/qt.py @@ -29,8 +29,7 @@ class Plugin(ColdcardPlugin, QtPluginBase): def create_handler(self, window): return Coldcard_Handler(window) - @staticmethod - def trim_file_suffix(path): + def trim_file_suffix(self, path): return path.rsplit('.', 1)[0] @only_hook_if_libraries_available