Skip to content
Snippets Groups Projects
Commit fe70c6f4 authored by lat9nq's avatar lat9nq
Browse files

settings_setting: Don't remove the AudioEngine workaround

parent c2961454
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,9 @@ protected:
return value_.has_value() ? std::to_string(*value_) : "none";
} else if constexpr (std::is_same_v<Type, bool>) {
return value_ ? "true" : "false";
} else if constexpr (std::is_same_v<Type, AudioEngine>) {
// Compatibility with old AudioEngine setting being a string
return CanonicalizeEnum(value_);
} else if constexpr (std::is_floating_point_v<Type>) {
return fmt::format("{:f}", value_);
} else if constexpr (std::is_enum_v<Type>) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment