instrument editor undo: don't check delta if no user input has come in that could potentially have dirtied the editor

This commit is contained in:
Adam Lederer 2024-08-19 00:02:42 -07:00 committed by tildearrow
parent ea02a913b2
commit ad53b33d7c
5 changed files with 54 additions and 22 deletions

View file

@ -2258,6 +2258,7 @@ class FurnaceGUI {
DivInstrument* prevInsData;
DivInstrument cachedCurIns;
DivInstrument* cachedCurInsPtr;
bool insEditMayBeDirty;
unsigned char* pendingLayoutImport;
size_t pendingLayoutImportLen;
@ -2924,6 +2925,7 @@ class FurnaceGUI {
void doUndoSample();
void doRedoSample();
void checkRecordInstrumentUndoStep();
void doUndoInstrument();
void doRedoInstrument();