mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-29 00:39:55 +00:00
Allow updating some database settings.
This commit is contained in:
@@ -22,6 +22,12 @@ void Database::reconfigure(const Settings &settings) {
|
||||
});
|
||||
}
|
||||
|
||||
void Database::updateSettings(const SettingsUpdate &update) {
|
||||
_wrapped.with([update](Implementation &unwrapped) mutable {
|
||||
unwrapped.updateSettings(update);
|
||||
});
|
||||
}
|
||||
|
||||
void Database::open(EncryptionKey &&key, FnMut<void(Error)> &&done) {
|
||||
_wrapped.with([
|
||||
key = std::move(key),
|
||||
|
||||
Reference in New Issue
Block a user