diff options
| author | Mike Skec <skec@protonmail.ch> | 2020-12-29 18:42:59 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2020-12-29 10:22:59 +0100 |
| commit | 03ccdf38e083b42a9c7d7887e43c48ed46155396 (patch) | |
| tree | c3440d3f9212c40c070be6fa2fb45dff8c97223c /src/browsertab.cpp | |
| parent | 2ccc644f98019885562c9c5f46d27be39595ff06 (diff) | |
| download | kristall-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.cpp | 2 |
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); |
