mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-03 09:29:37 +00:00
Hide History -> Fiat when websocket is disabled
This commit is contained in:
parent
678e011642
commit
f04019580e
3 changed files with 7 additions and 0 deletions
|
@ -70,6 +70,10 @@ void HistoryWidget::focusSearchbar() {
|
||||||
ui->search->setFocus();
|
ui->search->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void HistoryWidget::setWebsocketEnabled(bool enabled) {
|
||||||
|
ui->history->setColumnHidden(TransactionHistoryModel::FiatAmount, !enabled);
|
||||||
|
}
|
||||||
|
|
||||||
void HistoryWidget::showContextMenu(const QPoint &point) {
|
void HistoryWidget::showContextMenu(const QPoint &point) {
|
||||||
QModelIndex index = ui->history->indexAt(point);
|
QModelIndex index = ui->history->indexAt(point);
|
||||||
if (!index.isValid()) {
|
if (!index.isValid()) {
|
||||||
|
|
|
@ -27,6 +27,7 @@ public:
|
||||||
|
|
||||||
void setSearchbarVisible(bool visible);
|
void setSearchbarVisible(bool visible);
|
||||||
void focusSearchbar();
|
void focusSearchbar();
|
||||||
|
void setWebsocketEnabled(bool enabled);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setSearchText(const QString &text);
|
void setSearchText(const QString &text);
|
||||||
|
|
|
@ -564,6 +564,8 @@ void MainWindow::onWebsocketStatusChanged(bool enabled) {
|
||||||
ui->tabWidget->setTabVisible(Tabs::CALC, enabled && config()->get(Config::showTabCalc).toBool());
|
ui->tabWidget->setTabVisible(Tabs::CALC, enabled && config()->get(Config::showTabCalc).toBool());
|
||||||
ui->tabWidget->setTabVisible(Tabs::EXCHANGES, enabled && config()->get(Config::showTabExchange).toBool());
|
ui->tabWidget->setTabVisible(Tabs::EXCHANGES, enabled && config()->get(Config::showTabExchange).toBool());
|
||||||
|
|
||||||
|
m_historyWidget->setWebsocketEnabled(enabled);
|
||||||
|
|
||||||
#ifdef HAS_XMRIG
|
#ifdef HAS_XMRIG
|
||||||
m_xmrig->setDownloadsTabEnabled(enabled);
|
m_xmrig->setDownloadsTabEnabled(enabled);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue