Skip to content

Commit 5a6404c

Browse files
committed
Minor optimizations
1 parent 520394d commit 5a6404c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/importexport/lyricsexport/internal/lrcwriter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ void LRCWriter::findStaffVoiceAndLyricToExport(const mu::engraving::Score* score
225225
}
226226
}
227227
}
228+
// If we have already chosen the lowest/prioritized option we can return (no better option available)
229+
if (lyricsFound && (staff == 0) && (voice == 0) && (lyricNumber == 0)) {
230+
return;
231+
}
228232
}
229233
}
230234
}

src/importexport/lyricsexport/lyricsexportmodule.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,5 @@ void LyricsExportModule::resolveImports()
5454

5555
void LyricsExportModule::onInit(const IApplication::RunMode& mode)
5656
{
57-
if (mode == IApplication::RunMode::AudioPluginRegistration) {
58-
return;
59-
}
60-
6157
m_configuration->init();
6258
}

0 commit comments

Comments
 (0)