diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-01-21 21:30:50 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-01-21 13:49:54 +0100 |
| commit | 17a90d8dde55c5f0adc230c1a78da3dd2f8af995 (patch) | |
| tree | 6773b5090e669535b7279cefee75f6d231ca4fac /src/main.cpp | |
| parent | 2091b038ef2a23a85d30d056307b3c405c416256 (diff) | |
| download | kristall-17a90d8dde55c5f0adc230c1a78da3dd2f8af995.tar.gz | |
new-tab button: add preference
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 19326e2..a20cba4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -368,6 +368,7 @@ void GenericSettings::load(QSettings &settings) redirection_policy = RedirectionWarning(settings.value("redirection_policy ", WarnOnHostChange).toInt()); enable_home_btn = settings.value("enable_home_btn", false).toBool(); + enable_newtab_btn = settings.value("enable_newtab_btn", true).toBool(); cache_limit = settings.value("cache_limit", 1000).toInt(); cache_threshold = settings.value("cache_threshold", 125).toInt(); @@ -402,6 +403,7 @@ void GenericSettings::save(QSettings &settings) const settings.setValue("redirection_policy", int(redirection_policy)); settings.setValue("network_timeout", network_timeout); settings.setValue("enable_home_btn", enable_home_btn); + settings.setValue("enable_newtab_btn", enable_newtab_btn); settings.setValue("cache_limit", cache_limit); settings.setValue("cache_threshold", cache_threshold); |
