Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/data/models/LeaderboardModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ void LeaderboardModel::SyncStateToRuntime(AssetState nNewState) const
rc_mutex_unlock(&pClient->state.mutex);
}

void LeaderboardModel::SyncIDToRuntime() const
{
m_pLeaderboardInfo->public_.id = GetID();
}

void LeaderboardModel::SyncTitleToRuntime()
{
m_sTitleBuffer = ra::util::String::Narrow(GetName());
Expand Down Expand Up @@ -524,6 +529,7 @@ void LeaderboardModel::SyncToLocalLeaderboardInfo()
{
Expects(m_pLeaderboardInfo != nullptr);

SyncIDToRuntime();
SyncTitleToRuntime();
SyncDescriptionToRuntime();
SyncDefinitionToRuntime();
Expand Down
1 change: 1 addition & 0 deletions src/data/models/LeaderboardModel.hh
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ protected:
private:
void HandleStateChanged(AssetState nOldState, AssetState nNewState);

void SyncIDToRuntime() const;
void SyncTitleToRuntime();
void SyncDescriptionToRuntime();
void SyncStateToRuntime(AssetState nNewState) const;
Expand Down
Loading