From 03ccdf38e083b42a9c7d7887e43c48ed46155396 Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Tue, 29 Dec 2020 18:42:59 +1100 Subject: Add optional 'home' button to browser toolbar. Can be disable in settings --- src/browsertab.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/browsertab.cpp') diff --git a/src/browsertab.cpp b/src/browsertab.cpp index 525a8d3..7aa2217 100644 --- a/src/browsertab.cpp +++ b/src/browsertab.cpp @@ -1038,6 +1038,8 @@ void BrowserTab::updateUI() this->ui->back_button->setEnabled(history.oneBackward(current_history_index).isValid()); this->ui->forward_button->setEnabled(history.oneForward(current_history_index).isValid()); + this->ui->home_button->setVisible(kristall::options.enable_home_btn); + bool in_progress = (this->current_handler != nullptr) and this->current_handler->isInProgress(); this->ui->refresh_button->setVisible(not in_progress); -- cgit v1.2.3