Move sound update to save scene command.

This commit is contained in:
melieconiek 2022-01-15 11:27:29 -05:00
parent 42fcd55724
commit 08628f96e1

View file

@ -1487,6 +1487,8 @@ bool IoCmd::saveScene(const TFilePath &path, int flags) {
app->getCurrentScene()->setDirtyFlag(false);
app->getCurrentXsheet()->notifyXsheetSoundChanged();
History::instance()->addItem(scenePath);
RecentFiles::instance()->addFilePath(
toQString(scenePath), RecentFiles::Scene,
@ -1685,7 +1687,7 @@ bool IoCmd::saveAll() {
result = result && resources.save(scene->getScenePath());
resources.updatePaths();
TApp::instance()->getCurrentXsheet()->notifyXsheetSoundChanged();
// for update title bar
app->getCurrentLevel()->notifyLevelTitleChange();