mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-05 15:11:19 +00:00
GUI: fix pattern manager not marking modified
This commit is contained in:
parent
78d891f963
commit
1499cd714e
1 changed files with 3 additions and 0 deletions
|
@ -39,12 +39,14 @@ void FurnaceGUI::drawPatManager() {
|
|||
e->lockEngine([this]() {
|
||||
e->curSubSong->optimizePatterns();
|
||||
});
|
||||
MARK_MODIFIED;
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("Re-arrange patterns")) {
|
||||
e->lockEngine([this]() {
|
||||
e->curSubSong->rearrangePatterns();
|
||||
});
|
||||
MARK_MODIFIED;
|
||||
}
|
||||
|
||||
if (ImGui::BeginTable("PatManTable",257,ImGuiTableFlags_ScrollX|ImGuiTableFlags_SizingFixedFit)) {
|
||||
|
@ -98,6 +100,7 @@ void FurnaceGUI::drawPatManager() {
|
|||
delete e->curSubSong->pat[i].data[k];
|
||||
e->curSubSong->pat[i].data[k]=NULL;
|
||||
});
|
||||
MARK_MODIFIED;
|
||||
}
|
||||
ImGui::PopStyleColor();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue