1
0

coldcard: small fixes

This commit is contained in:
Sander van Grieken
2024-10-14 12:04:14 +02:00
parent 0bdfcb600a
commit 1c2c016f55
2 changed files with 4 additions and 2 deletions

View File

@@ -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)

View File

@@ -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