coldcard: small fixes
This commit is contained in:
@@ -162,6 +162,9 @@ class WalletInfoDialog(WindowModalDialog):
|
|||||||
|
|
||||||
vbox.addStretch(1)
|
vbox.addStretch(1)
|
||||||
btn_export_info = run_hook('wallet_info_buttons', window, self)
|
btn_export_info = run_hook('wallet_info_buttons', window, self)
|
||||||
|
if btn_export_info is None:
|
||||||
|
btn_export_info = []
|
||||||
|
|
||||||
btn_close = CloseButton(self)
|
btn_close = CloseButton(self)
|
||||||
btns = Buttons(*btn_export_info, btn_close)
|
btns = Buttons(*btn_export_info, btn_close)
|
||||||
vbox.addLayout(btns)
|
vbox.addLayout(btns)
|
||||||
|
|||||||
@@ -29,8 +29,7 @@ class Plugin(ColdcardPlugin, QtPluginBase):
|
|||||||
def create_handler(self, window):
|
def create_handler(self, window):
|
||||||
return Coldcard_Handler(window)
|
return Coldcard_Handler(window)
|
||||||
|
|
||||||
@staticmethod
|
def trim_file_suffix(self, path):
|
||||||
def trim_file_suffix(path):
|
|
||||||
return path.rsplit('.', 1)[0]
|
return path.rsplit('.', 1)[0]
|
||||||
|
|
||||||
@only_hook_if_libraries_available
|
@only_hook_if_libraries_available
|
||||||
|
|||||||
Reference in New Issue
Block a user