GUI: fix pattern manager not marking modified
This commit is contained in:
parent
78d891f963
commit
1499cd714e
|
|
@ -39,12 +39,14 @@ void FurnaceGUI::drawPatManager() {
|
||||||
e->lockEngine([this]() {
|
e->lockEngine([this]() {
|
||||||
e->curSubSong->optimizePatterns();
|
e->curSubSong->optimizePatterns();
|
||||||
});
|
});
|
||||||
|
MARK_MODIFIED;
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if (ImGui::Button("Re-arrange patterns")) {
|
if (ImGui::Button("Re-arrange patterns")) {
|
||||||
e->lockEngine([this]() {
|
e->lockEngine([this]() {
|
||||||
e->curSubSong->rearrangePatterns();
|
e->curSubSong->rearrangePatterns();
|
||||||
});
|
});
|
||||||
|
MARK_MODIFIED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ImGui::BeginTable("PatManTable",257,ImGuiTableFlags_ScrollX|ImGuiTableFlags_SizingFixedFit)) {
|
if (ImGui::BeginTable("PatManTable",257,ImGuiTableFlags_ScrollX|ImGuiTableFlags_SizingFixedFit)) {
|
||||||
|
|
@ -98,6 +100,7 @@ void FurnaceGUI::drawPatManager() {
|
||||||
delete e->curSubSong->pat[i].data[k];
|
delete e->curSubSong->pat[i].data[k];
|
||||||
e->curSubSong->pat[i].data[k]=NULL;
|
e->curSubSong->pat[i].data[k]=NULL;
|
||||||
});
|
});
|
||||||
|
MARK_MODIFIED;
|
||||||
}
|
}
|
||||||
ImGui::PopStyleColor();
|
ImGui::PopStyleColor();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue