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

Method update

au4/src/appshell/view/mainwindowtitleprovider.cpp:94–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void MainWindowTitleProvider::update()
95{
96 IAudacityProjectPtr project = context()->currentProject();
97
98 if (!project) {
99 setTitle(muse::qtrc("appshell", "Audacity 4"));
100 setFilePath("");
101 setFileModified(false);
102 return;
103 }
104
105 setTitle(project->title());
106
107 setFilePath(project->path().toQString());
108 setFileModified(project->needSave().val);
109}

Callers 1

Calls 5

needSaveMethod · 0.80
contextClass · 0.50
currentProjectMethod · 0.45
titleMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected