diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 66ab62b..ae5ca38 100755 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2245,6 +2245,22 @@ void MainWindow::setupMarketTab() { auto s = Settings::getInstance(); auto ticker = s->get_currency_name(); + // Hide note to allow fetch prices if already enabled and hide empty chart/data if not enabled + if (s->getAllowFetchPrices() == true) { + ui->marketNote->setHidden(true); + } else { + ui->marketChart->setHidden(true); + ui->volume->setHidden(true); + ui->volumeLabel->setHidden(true); + ui->volumeBTC->setHidden(true); + ui->volumeLocal->setHidden(true); + ui->marketcap->setHidden(true); + ui->marketcapLabel->setHidden(true); + ui->marketcapBTC->setHidden(true); + ui->marketcapLocal->setHidden(true); + ui->chartType->setHidden(true); + } + ui->volume->setText(QString::number((double) s->get_volume("HUSH") ,'f',8) + " HUSH"); ui->volumeLocal->setText(QString::number((double) s->get_volume(ticker) ,'f',8) + " " + ticker); ui->volumeBTC->setText(QString::number((double) s->get_volume("BTC") ,'f',8) + " BTC"); diff --git a/src/mainwindow.ui b/src/mainwindow.ui index f9a73ff..67e888a 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -1061,7 +1061,7 @@ - + Market Cap @@ -1191,10 +1191,29 @@ - + + + + 0 + 0 + + + + + 11 + 75 + true + + - Allow "Connect to the internet to fetch prices" under Edit > Settings > Options to see market data + <html><head/><body><p>Note: <span style=" font-weight:400;">Please allow &quot;Connect to the internet to fetch prices&quot; under Edit &gt; Settings &gt; Options </span>(Ctrl+P)<span style=" font-weight:400;"> to see market data and restart the app.</span></p><p><span style=" font-weight:400;">Fetching prices and market data is disabled by default for </span>Extreme Privacy!</p></body></html> + + + Qt::AlignHCenter|Qt::AlignTop + + + 30 false