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/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 6fb5280..476a333 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -380,6 +380,8 @@ void GenericSettings::load(QSettings &settings) enable_home_btn = settings.value("enable_home_btn", false).toBool(); enable_newtab_btn = settings.value("enable_newtab_btn", true).toBool(); + enable_root_btn = settings.value("enable_root_btn", false).toBool(); + enable_parent_btn = settings.value("enable_parent_btn", false).toBool(); cache_limit = settings.value("cache_limit", 1000).toInt(); cache_threshold = settings.value("cache_threshold", 125).toInt(); @@ -426,6 +428,8 @@ void GenericSettings::save(QSettings &settings) const settings.setValue("network_timeout", network_timeout); settings.setValue("enable_home_btn", enable_home_btn); settings.setValue("enable_newtab_btn", enable_newtab_btn); + settings.setValue("enable_root_btn", enable_root_btn); + settings.setValue("enable_parent_btn", enable_parent_btn); settings.setValue("cache_limit", cache_limit); settings.setValue("cache_threshold", cache_threshold); -- cgit v1.2.3