GUI: mark modified on asset movement

This commit is contained in:
tildearrow 2023-10-30 13:33:16 -05:00
parent 83c4d5ba97
commit 5c9569a64a

View file

@ -672,12 +672,14 @@ void FurnaceGUI::doAction(int what) {
if (e->moveInsUp(curIns)) { if (e->moveInsUp(curIns)) {
curIns--; curIns--;
wantScrollList=true; wantScrollList=true;
MARK_MODIFIED;
} }
break; break;
case GUI_ACTION_INS_LIST_MOVE_DOWN: case GUI_ACTION_INS_LIST_MOVE_DOWN:
if (e->moveInsDown(curIns)) { if (e->moveInsDown(curIns)) {
curIns++; curIns++;
wantScrollList=true; wantScrollList=true;
MARK_MODIFIED;
} }
break; break;
case GUI_ACTION_INS_LIST_DELETE: case GUI_ACTION_INS_LIST_DELETE:
@ -752,12 +754,14 @@ void FurnaceGUI::doAction(int what) {
if (e->moveWaveUp(curWave)) { if (e->moveWaveUp(curWave)) {
curWave--; curWave--;
wantScrollList=true; wantScrollList=true;
MARK_MODIFIED;
} }
break; break;
case GUI_ACTION_WAVE_LIST_MOVE_DOWN: case GUI_ACTION_WAVE_LIST_MOVE_DOWN:
if (e->moveWaveDown(curWave)) { if (e->moveWaveDown(curWave)) {
curWave++; curWave++;
wantScrollList=true; wantScrollList=true;
MARK_MODIFIED;
} }
break; break;
case GUI_ACTION_WAVE_LIST_DELETE: case GUI_ACTION_WAVE_LIST_DELETE:
@ -852,6 +856,7 @@ void FurnaceGUI::doAction(int what) {
curSample--; curSample--;
wantScrollList=true; wantScrollList=true;
updateSampleTex=true; updateSampleTex=true;
MARK_MODIFIED;
} }
break; break;
case GUI_ACTION_SAMPLE_LIST_MOVE_DOWN: case GUI_ACTION_SAMPLE_LIST_MOVE_DOWN:
@ -859,6 +864,7 @@ void FurnaceGUI::doAction(int what) {
curSample++; curSample++;
wantScrollList=true; wantScrollList=true;
updateSampleTex=true; updateSampleTex=true;
MARK_MODIFIED;
} }
break; break;
case GUI_ACTION_SAMPLE_LIST_DELETE: case GUI_ACTION_SAMPLE_LIST_DELETE: