Commit 6c7c4541 authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Kateryna Kostiuk

settings: fix setting display name not saving

Change-Id: If263da0d0fb00559fd67687e0aeabbe127ba978c
parent 6762840c
...@@ -289,8 +289,12 @@ public: ...@@ -289,8 +289,12 @@ public:
accountModel().setAvatar(getCurrAccId(), avatar); accountModel().setAvatar(getCurrAccId(), avatar);
}; };
static void setCurrAccDisplayName(const std::string& alias) { static void setCurrAccDisplayName(const std::string& displayName) {
accountModel().setAlias(getCurrAccId(), alias); auto accountId = LRCInstance::getCurrAccId();
accountModel().setAlias(accountId, displayName);
// force save to .yml
auto confProps = LRCInstance::accountModel().getAccountConfig(accountId);
LRCInstance::accountModel().setAccountConfig(accountId, confProps);
}; };
static const account::ConfProperties_t& getCurrAccConfig() { static const account::ConfProperties_t& getCurrAccConfig() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment