GUI: more mark modified cases
This commit is contained in:
parent
2272028b10
commit
40108976c3
|
@ -3446,6 +3446,8 @@ bool FurnaceGUI::loop() {
|
||||||
if (picked!=DIV_SYSTEM_NULL) {
|
if (picked!=DIV_SYSTEM_NULL) {
|
||||||
if (!e->addSystem(picked)) {
|
if (!e->addSystem(picked)) {
|
||||||
showError("cannot add chip! ("+e->getLastError()+")");
|
showError("cannot add chip! ("+e->getLastError()+")");
|
||||||
|
} else {
|
||||||
|
MARK_MODIFIED;
|
||||||
}
|
}
|
||||||
ImGui::CloseCurrentPopup();
|
ImGui::CloseCurrentPopup();
|
||||||
if (e->song.autoSystem) {
|
if (e->song.autoSystem) {
|
||||||
|
@ -3471,6 +3473,7 @@ bool FurnaceGUI::loop() {
|
||||||
DivSystem picked=systemPicker();
|
DivSystem picked=systemPicker();
|
||||||
if (picked!=DIV_SYSTEM_NULL) {
|
if (picked!=DIV_SYSTEM_NULL) {
|
||||||
e->changeSystem(i,picked,preserveChanPos);
|
e->changeSystem(i,picked,preserveChanPos);
|
||||||
|
MARK_MODIFIED;
|
||||||
if (e->song.autoSystem) {
|
if (e->song.autoSystem) {
|
||||||
autoDetectSystem();
|
autoDetectSystem();
|
||||||
}
|
}
|
||||||
|
@ -3488,6 +3491,8 @@ bool FurnaceGUI::loop() {
|
||||||
if (ImGui::MenuItem(fmt::sprintf("%d. %s##_SYSR%d",i+1,getSystemName(e->song.system[i]),i).c_str())) {
|
if (ImGui::MenuItem(fmt::sprintf("%d. %s##_SYSR%d",i+1,getSystemName(e->song.system[i]),i).c_str())) {
|
||||||
if (!e->removeSystem(i,preserveChanPos)) {
|
if (!e->removeSystem(i,preserveChanPos)) {
|
||||||
showError("cannot remove chip! ("+e->getLastError()+")");
|
showError("cannot remove chip! ("+e->getLastError()+")");
|
||||||
|
} else {
|
||||||
|
MARK_MODIFIED;
|
||||||
}
|
}
|
||||||
if (e->song.autoSystem) {
|
if (e->song.autoSystem) {
|
||||||
autoDetectSystem();
|
autoDetectSystem();
|
||||||
|
@ -4640,6 +4645,7 @@ bool FurnaceGUI::loop() {
|
||||||
if (e->song.autoSystem) {
|
if (e->song.autoSystem) {
|
||||||
autoDetectSystem();
|
autoDetectSystem();
|
||||||
updateWindowTitle();
|
updateWindowTitle();
|
||||||
|
MARK_MODIFIED;
|
||||||
}
|
}
|
||||||
ImGui::CloseCurrentPopup();
|
ImGui::CloseCurrentPopup();
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,6 +91,7 @@ void FurnaceGUI::drawSongInfo() {
|
||||||
autoDetectSystem();
|
autoDetectSystem();
|
||||||
updateWindowTitle();
|
updateWindowTitle();
|
||||||
}
|
}
|
||||||
|
MARK_MODIFIED;
|
||||||
}
|
}
|
||||||
popToggleColors();
|
popToggleColors();
|
||||||
autoButtonSize=ImGui::GetItemRectSize().x;
|
autoButtonSize=ImGui::GetItemRectSize().x;
|
||||||
|
|
|
@ -62,6 +62,7 @@ void FurnaceGUI::drawSysManager() {
|
||||||
if (dragItem->IsDataType("FUR_SYS")) {
|
if (dragItem->IsDataType("FUR_SYS")) {
|
||||||
if (sysToMove!=i && sysToMove>=0) {
|
if (sysToMove!=i && sysToMove>=0) {
|
||||||
e->swapSystem(sysToMove,i,preserveChanPos);
|
e->swapSystem(sysToMove,i,preserveChanPos);
|
||||||
|
MARK_MODIFIED;
|
||||||
}
|
}
|
||||||
sysToMove=-1;
|
sysToMove=-1;
|
||||||
}
|
}
|
||||||
|
@ -82,6 +83,7 @@ void FurnaceGUI::drawSysManager() {
|
||||||
DivSystem picked=systemPicker();
|
DivSystem picked=systemPicker();
|
||||||
if (picked!=DIV_SYSTEM_NULL) {
|
if (picked!=DIV_SYSTEM_NULL) {
|
||||||
e->changeSystem(i,picked,preserveChanPos);
|
e->changeSystem(i,picked,preserveChanPos);
|
||||||
|
MARK_MODIFIED;
|
||||||
if (e->song.autoSystem) {
|
if (e->song.autoSystem) {
|
||||||
autoDetectSystem();
|
autoDetectSystem();
|
||||||
}
|
}
|
||||||
|
@ -112,6 +114,8 @@ void FurnaceGUI::drawSysManager() {
|
||||||
if (picked!=DIV_SYSTEM_NULL) {
|
if (picked!=DIV_SYSTEM_NULL) {
|
||||||
if (!e->addSystem(picked)) {
|
if (!e->addSystem(picked)) {
|
||||||
showError("cannot add chip! ("+e->getLastError()+")");
|
showError("cannot add chip! ("+e->getLastError()+")");
|
||||||
|
} else {
|
||||||
|
MARK_MODIFIED;
|
||||||
}
|
}
|
||||||
if (e->song.autoSystem) {
|
if (e->song.autoSystem) {
|
||||||
autoDetectSystem();
|
autoDetectSystem();
|
||||||
|
|
Loading…
Reference in New Issue