Skip to content

Commit

Permalink
GUI: mark modified on asset movement
Browse files Browse the repository at this point in the history
  • Loading branch information
tildearrow committed Oct 30, 2023
1 parent 83c4d5b commit 5c9569a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/doAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -672,12 +672,14 @@ void FurnaceGUI::doAction(int what) {
if (e->moveInsUp(curIns)) {
curIns--;
wantScrollList=true;
MARK_MODIFIED;
}
break;
case GUI_ACTION_INS_LIST_MOVE_DOWN:
if (e->moveInsDown(curIns)) {
curIns++;
wantScrollList=true;
MARK_MODIFIED;
}
break;
case GUI_ACTION_INS_LIST_DELETE:
Expand Down Expand Up @@ -752,12 +754,14 @@ void FurnaceGUI::doAction(int what) {
if (e->moveWaveUp(curWave)) {
curWave--;
wantScrollList=true;
MARK_MODIFIED;
}
break;
case GUI_ACTION_WAVE_LIST_MOVE_DOWN:
if (e->moveWaveDown(curWave)) {
curWave++;
wantScrollList=true;
MARK_MODIFIED;
}
break;
case GUI_ACTION_WAVE_LIST_DELETE:
Expand Down Expand Up @@ -852,13 +856,15 @@ void FurnaceGUI::doAction(int what) {
curSample--;
wantScrollList=true;
updateSampleTex=true;
MARK_MODIFIED;
}
break;
case GUI_ACTION_SAMPLE_LIST_MOVE_DOWN:
if (e->moveSampleDown(curSample)) {
curSample++;
wantScrollList=true;
updateSampleTex=true;
MARK_MODIFIED;
}
break;
case GUI_ACTION_SAMPLE_LIST_DELETE:
Expand Down

0 comments on commit 5c9569a

Please sign in to comment.