1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 10:01:13 +09:00

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
Notes: sideshowbarker 2024-07-18 05:19:19 +09:00

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));