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

Method init

au4/src/project/view/projectpropertiesmodel.cpp:36–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void ProjectPropertiesModel::init()
37{
38 m_project = globalContext()->currentProject();
39
40 globalContext()->currentProjectChanged().onNotify(this, [this]() {
41 m_project = globalContext()->currentProject();
42 });
43
44 if (!m_project) {
45 return;
46 }
47
48 // if (project) {
49 // m_projectMetaInfo = project->metaInfo();
50 // }
51
52 m_project->captureThumbnailRequested().onNotify(this, [this]() {
53 captureThumbnail();
54 });
55
56 load();
57}
58
59void ProjectPropertiesModel::load()
60{

Callers

nothing calls this directly

Calls 4

loadFunction · 0.85
currentProjectChangedMethod · 0.80
currentProjectMethod · 0.45

Tested by

no test coverage detected