LibCore: Set file offset in ConfigFile::sync

This commit is contained in:
Ralf Donau 2021-08-24 11:24:19 +02:00 committed by Andreas Kling
parent fe09f85414
commit a501b903b5

View file

@ -164,6 +164,7 @@ bool ConfigFile::sync()
return true;
m_file->truncate(0);
m_file->seek(0);
for (auto& it : m_groups) {
m_file->write(String::formatted("[{}]\n", it.key));