From a933a11d5d3b9e75071a28b3f390b89e54a8460a Mon Sep 17 00:00:00 2001 From: wqking Date: Thu, 17 Jun 2021 15:39:18 +0800 Subject: [PATCH] Removed Governance page --- src/qt/bitcoingui.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index a24b279f7..db6e721c9 100755 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -386,6 +386,7 @@ void BitcoinGUI::createActions(const NetworkStyle* networkStyle) connect(masternodeAction, SIGNAL(triggered()), this, SLOT(gotoMasternodePage())); } +/* governanceAction = new QAction(QIcon(":/icons/governance"), tr("&Governance"), this); governanceAction->setStatusTip(tr("Show Proposals")); governanceAction->setToolTip(governanceAction->statusTip()); @@ -396,6 +397,7 @@ void BitcoinGUI::createActions(const NetworkStyle* networkStyle) governanceAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_7)); #endif tabGroup->addAction(governanceAction); +*/ // These showNormalIfMinimized are needed because Send Coins and Receive Coins // can be triggered from the tray menu, and need to show the GUI to be useful. @@ -409,7 +411,7 @@ void BitcoinGUI::createActions(const NetworkStyle* networkStyle) connect(privacyAction, SIGNAL(triggered()), this, SLOT(gotoPrivacyPage())); connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized())); connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage())); - connect(governanceAction, SIGNAL(triggered()), this, SLOT(gotoGovernancePage())); +// connect(governanceAction, SIGNAL(triggered()), this, SLOT(gotoGovernancePage())); #endif // ENABLE_WALLET quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this); @@ -601,7 +603,7 @@ void BitcoinGUI::createToolBars() if (settings.value("fShowMasternodesTab").toBool()) { toolbar->addAction(masternodeAction); } - toolbar->addAction(governanceAction); +// toolbar->addAction(governanceAction); toolbar->setMovable(false); // remove unused icon in upper left corner toolbar->setOrientation(Qt::Vertical); toolbar->setIconSize(QSize(40,40)); @@ -863,8 +865,8 @@ void BitcoinGUI::gotoMasternodePage() void BitcoinGUI::gotoGovernancePage() { - governanceAction->setChecked(true); - if (walletFrame) walletFrame->gotoGovernancePage(); +// governanceAction->setChecked(true); +// if (walletFrame) walletFrame->gotoGovernancePage(); } void BitcoinGUI::gotoReceiveCoinsPage()