1
0

qt: move "FREEZE_REUSED_ADDRESS_UTXOS" option to utxo_list toolbar

ref https://github.com/spesmilo/electrum/pull/9636
This commit is contained in:
SomberNight
2025-03-14 15:08:49 +00:00
parent 656c109336
commit fddd4275aa
2 changed files with 5 additions and 5 deletions

View File

@@ -418,11 +418,6 @@ class TxEditor(WindowModalDialog):
self.pref_menu.addConfig(self.config.cv.WALLET_MERGE_DUPLICATE_OUTPUTS, callback=self.trigger_update)
self.pref_menu.addConfig(self.config.cv.WALLET_SPEND_CONFIRMED_ONLY, callback=self.trigger_update)
self.pref_menu.addConfig(self.config.cv.WALLET_COIN_CHOOSER_OUTPUT_ROUNDING, callback=self.trigger_update)
def cb():
self.trigger_update()
self.main_window.utxo_list.refresh_all() # for coin frozen status
self.main_window.update_status() # frozen balance
self.pref_menu.addConfig(self.config.cv.WALLET_FREEZE_REUSED_ADDRESS_UTXOS, callback=cb)
self.pref_button = QToolButton()
self.pref_button.setIcon(read_QIcon("preferences.png"))
self.pref_button.setMenu(self.pref_menu)

View File

@@ -90,6 +90,11 @@ class UTXOList(MyTreeView):
toolbar, menu = self.create_toolbar_with_menu('')
self.num_coins_label = toolbar.itemAt(0).widget()
menu.addAction(_('Coin control'), lambda: self.add_selection_to_coincontrol())
def cb():
self.main_window.utxo_list.refresh_all() # for coin frozen status
self.main_window.update_status() # frozen balance
menu.addConfig(config.cv.WALLET_FREEZE_REUSED_ADDRESS_UTXOS, callback=cb)
return toolbar
@profiler(min_threshold=0.05)