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

Method Add

libraries/lib-project-file-io/ActiveProjects.cpp:33–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void ActiveProjects::Add(const FilePath &path)
34{
35 wxString key = Find(path);
36
37 if (key.empty())
38 {
39 int i = 0;
40 do
41 {
42 key.Printf(wxT("/ActiveProjects/%d"), ++i);
43 } while (gPrefs->HasEntry(key));
44
45 gPrefs->Write(key, path);
46 gPrefs->Flush();
47 }
48}
49
50void ActiveProjects::Remove(const FilePath &path)
51{

Callers 1

GetAllMethod · 0.45

Calls 5

FindFunction · 0.85
emptyMethod · 0.45
HasEntryMethod · 0.45
WriteMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected