aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2021-01-21 21:30:50 +1100
committerFelix Queißner <felix@ib-queissner.de>2021-01-21 13:49:54 +0100
commit17a90d8dde55c5f0adc230c1a78da3dd2f8af995 (patch)
tree6773b5090e669535b7279cefee75f6d231ca4fac /src/mainwindow.cpp
parent2091b038ef2a23a85d30d056307b3c405c416256 (diff)
downloadkristall-17a90d8dde55c5f0adc230c1a78da3dd2f8af995.tar.gz
new-tab button: add preference
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 1d9dfb0..d1f27d7 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -402,6 +402,10 @@ void MainWindow::on_actionSettings_triggered()
// Re-render the currently-open tab if we have one.
BrowserTab * tab = this->curTab();
if (tab) tab->rerenderPage();
+
+ // Update new-tab button visibility.
+ this->ui->browser_tabs->tab_bar->new_tab_btn
+ ->setVisible(kristall::options.enable_newtab_btn);
}
void MainWindow::on_actionNew_Tab_triggered()