Skip to content

Commit

Permalink
Reorder the tabs in Qt
Browse files Browse the repository at this point in the history
  • Loading branch information
Wukong committed Sep 9, 2021
1 parent aaebb1a commit bc71997
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/joinmarket-qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2339,8 +2339,8 @@ def onTabChange(i):
# TODO: hardcoded literal;
# note that this is needed for an auto-update
# of utxos on the Coins tab only atm.
if i == 4:
tabWidget.widget(4).updateUtxos()
if i == 2:
tabWidget.widget(2).updateUtxos()

#to allow testing of confirm/unconfirm callback for multiple txs
if isinstance(jm_single().bc_interface, RegtestBitcoinCoreInterface):
Expand All @@ -2360,11 +2360,11 @@ def onTabChange(i):
mainWindow = JMMainWindow(reactor)
tabWidget = QTabWidget(mainWindow)
tabWidget.addTab(JMWalletTab(), "JM Wallet")
settingsTab = SettingsTab()
tabWidget.addTab(settingsTab, "Settings")
tabWidget.addTab(SpendTab(), "Coinjoins")
tabWidget.addTab(TxHistoryTab(), "Tx History")
tabWidget.addTab(CoinsTab(), "Coins")
tabWidget.addTab(TxHistoryTab(), "Tx History")
settingsTab = SettingsTab()
tabWidget.addTab(settingsTab, "Settings")

mainWindow.resize(600, 500)
if get_network() == 'testnet':
Expand Down

0 comments on commit bc71997

Please sign in to comment.