MCPcopy Create free account
hub / github.com/DiscordMessenger/dm / LoadUserSettings

Method LoadUserSettings

src/discord/DiscordInstance.cpp:1753–1768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1751}
1752
1753void DiscordInstance::LoadUserSettings(const std::string& userSettings)
1754{
1755 // load some old stuff so we can check it and send appropriate events
1756 std::string oldStatus = GetSettingsManager()->GetCustomStatusText();
1757 eActiveStatus oldActive = GetProfile()->m_activeStatus;
1758
1759 GetSettingsManager()->LoadDataBase64(userSettings);
1760
1761 std::string newStatus = GetSettingsManager()->GetCustomStatusText();
1762 eActiveStatus newActive = GetProfile()->m_activeStatus;
1763
1764 UpdateSettingsInfo();
1765
1766 if (oldStatus != newStatus || oldActive != newActive)
1767 GetFrontend()->RepaintProfile();
1768}
1769
1770bool DiscordInstance::ResortChannels(Snowflake guild)
1771{

Callers

nothing calls this directly

Calls 5

GetSettingsManagerFunction · 0.85
GetFrontendFunction · 0.85
GetCustomStatusTextMethod · 0.80
LoadDataBase64Method · 0.80
RepaintProfileMethod · 0.80

Tested by

no test coverage detected