From 42813aa9ef1b6ada776cf0938ba02dad48a17422 Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Thu, 18 Feb 2021 20:24:11 +1100 Subject: Add optional root/parent toolbar buttons --- src/dialogs/settingsdialog.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/dialogs/settingsdialog.cpp') diff --git a/src/dialogs/settingsdialog.cpp b/src/dialogs/settingsdialog.cpp index b943a56..f441824 100644 --- a/src/dialogs/settingsdialog.cpp +++ b/src/dialogs/settingsdialog.cpp @@ -297,6 +297,8 @@ void SettingsDialog::setOptions(const GenericSettings &options) this->ui->enable_home_btn->setChecked(this->current_options.enable_home_btn); this->ui->enable_newtab_btn->setChecked(this->current_options.enable_newtab_btn); + this->ui->enable_root_btn->setChecked(this->current_options.enable_root_btn); + this->ui->enable_parent_btn->setChecked(this->current_options.enable_parent_btn); this->ui->cache_limit->setValue(this->current_options.cache_limit); this->ui->cache_threshold->setValue(this->current_options.cache_threshold); @@ -825,6 +827,16 @@ void SettingsDialog::on_enable_newtab_btn_clicked(bool checked) this->current_options.enable_newtab_btn = checked; } +void SettingsDialog::on_enable_root_btn_clicked(bool checked) +{ + this->current_options.enable_root_btn = checked; +} + +void SettingsDialog::on_enable_parent_btn_clicked(bool checked) +{ + this->current_options.enable_parent_btn = checked; +} + void SettingsDialog::on_cache_limit_valueChanged(int limit) { this->current_options.cache_limit = limit; -- cgit v1.2.3