mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-04 14:02:45 +01:00
settings_setting: Don't remove the AudioEngine workaround
This commit is contained in:
parent
c2961454fe
commit
fe70c6f481
1 changed files with 3 additions and 0 deletions
|
@ -113,6 +113,9 @@ protected:
|
||||||
return value_.has_value() ? std::to_string(*value_) : "none";
|
return value_.has_value() ? std::to_string(*value_) : "none";
|
||||||
} else if constexpr (std::is_same_v<Type, bool>) {
|
} else if constexpr (std::is_same_v<Type, bool>) {
|
||||||
return value_ ? "true" : "false";
|
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>) {
|
} else if constexpr (std::is_floating_point_v<Type>) {
|
||||||
return fmt::format("{:f}", value_);
|
return fmt::format("{:f}", value_);
|
||||||
} else if constexpr (std::is_enum_v<Type>) {
|
} else if constexpr (std::is_enum_v<Type>) {
|
||||||
|
|
Loading…
Reference in a new issue