1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:08:11 +00:00

LibConfig+ConfigServer: Write config values synchronously

This patch fixes the issue of pressing the ok button of a settings menu
without saving the changes, or not reverting the changes when pressing
the cancel button because the app has died before the new values make
it to the other end.
This commit is contained in:
Moustafa Raafat 2022-04-20 18:41:44 +02:00 committed by Linus Groh
parent 0a14732aa8
commit 0a3467d665
2 changed files with 6 additions and 6 deletions

View file

@ -57,17 +57,17 @@ bool Client::read_bool(StringView domain, StringView group, StringView key, bool
void Client::write_string(StringView domain, StringView group, StringView key, StringView value)
{
async_write_string_value(domain, group, key, value);
write_string_value(domain, group, key, value);
}
void Client::write_i32(StringView domain, StringView group, StringView key, i32 value)
{
async_write_i32_value(domain, group, key, value);
write_i32_value(domain, group, key, value);
}
void Client::write_bool(StringView domain, StringView group, StringView key, bool value)
{
async_write_bool_value(domain, group, key, value);
write_bool_value(domain, group, key, value);
}
void Client::remove_key(StringView domain, StringView group, StringView key)