aboutsummaryrefslogtreecommitdiff
path: root/src/browsertab.cpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2020-12-29 18:42:59 +1100
committerFelix Queißner <felix@ib-queissner.de>2020-12-29 10:22:59 +0100
commit03ccdf38e083b42a9c7d7887e43c48ed46155396 (patch)
treec3440d3f9212c40c070be6fa2fb45dff8c97223c /src/browsertab.cpp
parent2ccc644f98019885562c9c5f46d27be39595ff06 (diff)
downloadkristall-03ccdf38e083b42a9c7d7887e43c48ed46155396.tar.gz
Add optional 'home' button to browser toolbar.
Can be disable in settings
Diffstat (limited to 'src/browsertab.cpp')
-rw-r--r--src/browsertab.cpp2
1 files changed, 2 insertions, 0 deletions
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);