MCPcopy Create free account
hub / github.com/audacity/audacity / ClearUserData

Method ClearUserData

libraries/lib-cloud-audiocom/UserService.cpp:128–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void UserService::ClearUserData()
129{
130 BasicUI::CallAfter(
131 [this]()
132 {
133 // No valid data was present, do not spam Publish()
134 if (GetUserSlug().empty())
135 return;
136
137 userId.Write({});
138 userName.Write({});
139 displayName.Write({});
140 avatarEtag.Write({});
141
142 gPrefs->Flush();
143
144 Publish({});
145 });
146}
147
148UserService& GetUserService()
149{

Callers 1

UserService.cppFile · 0.80

Calls 4

CallAfterFunction · 0.85
emptyMethod · 0.45
WriteMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected