From 8590a74785c9ae0b170c497b3c919d9ff1be27fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Sun, 18 Apr 2021 15:28:11 +0200 Subject: [PATCH] Also flush prefs on user change, see previous commit Flushing user changes to powder.pref was in fact the reason why I began this pref flushing thing at all, but of course Client handles user changes by modifying preferences directly, not through SetPref, so it skipped WritePrefs. --- src/client/Client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 0c43c24d1..eae84f72f 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -940,6 +940,7 @@ Client::~Client() void Client::SetAuthUser(User user) { authUser = user; + WritePrefs(); notifyAuthUserChanged(); }