This commit is contained in:
2025-02-25 09:17:10 +03:00
parent 5b89a968eb
commit c64baf6e35
2 changed files with 8 additions and 7 deletions

View File

@@ -185,12 +185,12 @@ public:
fst << "#\n";
for (auto& [key, value] : _currentConfig) {
fst << key << " = ";
fst << key;
if (auto v_str = std::get_if<1>(&value)) {
fst << *v_str;
fst << " = " << *v_str;
} else if (auto v_vec = std::get_if<2>(&value)) {
fst << (*v_vec)[0];
fst << " = " << (*v_vec)[0];
for (size_t i = 1; i < v_vec->size(); ++i) {
fst << ", " << (*v_vec)[i];
}