From bc71997058d9200c4dc5ddaf5350d113e068e6f7 Mon Sep 17 00:00:00 2001 From: Wukong Date: Thu, 9 Sep 2021 00:30:08 -0700 Subject: [PATCH] Reorder the tabs in Qt --- scripts/joinmarket-qt.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/joinmarket-qt.py b/scripts/joinmarket-qt.py index 347571d56..7e697d1da 100755 --- a/scripts/joinmarket-qt.py +++ b/scripts/joinmarket-qt.py @@ -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): @@ -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':