From 17a90d8dde55c5f0adc230c1a78da3dd2f8af995 Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Thu, 21 Jan 2021 21:30:50 +1100 Subject: new-tab button: add preference --- src/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mainwindow.cpp') 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() -- cgit v1.2.3