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.
This commit is contained in:
Tamás Bálint Misius 2021-04-18 15:28:11 +02:00
parent dfc8dc80bd
commit 8590a74785
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -940,6 +940,7 @@ Client::~Client()
void Client::SetAuthUser(User user) void Client::SetAuthUser(User user)
{ {
authUser = user; authUser = user;
WritePrefs();
notifyAuthUserChanged(); notifyAuthUserChanged();
} }