add option to remove unused patterns
This commit is contained in:
parent
5aa9019ec2
commit
80a92b8b43
3 changed files with 27 additions and 0 deletions
|
|
@ -6553,6 +6553,14 @@ bool FurnaceGUI::loop() {
|
|||
MARK_MODIFIED;
|
||||
ImGui::CloseCurrentPopup();
|
||||
}
|
||||
if (ImGui::Button(_("Remove unused patterns"))) {
|
||||
stop();
|
||||
e->lockEngine([this]() {
|
||||
e->curSubSong->removeUnusedPatterns();
|
||||
});
|
||||
MARK_MODIFIED;
|
||||
ImGui::CloseCurrentPopup();
|
||||
}
|
||||
if (ImGui::Button(_("Remove unused instruments"))) {
|
||||
stop();
|
||||
e->delUnusedIns();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue