summaryrefslogtreecommitdiffhomepage
path: root/options/value.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'options/value.hpp')
-rw-r--r--options/value.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/options/value.hpp b/options/value.hpp
index 253da0c4..2021bd3e 100644
--- a/options/value.hpp
+++ b/options/value.hpp
@@ -90,6 +90,7 @@ public slots:
virtual void reload() = 0;
virtual void bundle_value_changed() const = 0;
+ virtual void set_to_default() = 0;
};
namespace detail {
@@ -171,6 +172,11 @@ public:
return def;
}
+ void set_to_default() override
+ {
+ *this = def;
+ }
+
operator t() const { return get(); }
void reload() override