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/dialogs/settingsdialog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/dialogs/settingsdialog.cpp') diff --git a/src/dialogs/settingsdialog.cpp b/src/dialogs/settingsdialog.cpp index 0925578..229a728 100644 --- a/src/dialogs/settingsdialog.cpp +++ b/src/dialogs/settingsdialog.cpp @@ -250,6 +250,7 @@ void SettingsDialog::setOptions(const GenericSettings &options) this->ui->network_timeout->setValue(this->current_options.network_timeout); 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->cache_limit->setValue(this->current_options.cache_limit); this->ui->cache_threshold->setValue(this->current_options.cache_threshold); @@ -678,6 +679,11 @@ void SettingsDialog::on_enable_home_btn_clicked(bool checked) this->current_options.enable_home_btn = checked; } +void SettingsDialog::on_enable_newtab_btn_clicked(bool checked) +{ + this->current_options.enable_newtab_btn = checked; +} + void SettingsDialog::on_cache_limit_valueChanged(int limit) { this->current_options.cache_limit = limit; -- cgit v1.2.3