1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-29 22:58:39 +02:00

Call ModifyState(false) after changing zoom

This doesn't need to trigger an autosave (which is what passing true would do), but the state should still be modified.

Unfortunately this doesn't seem to enable saving -- probably because no undo state is being pushed.  That's something to consider for the future.
This commit is contained in:
Pokechu22 2018-01-14 12:08:48 -08:00 committed by James Crook
parent 88d26329bc
commit 567b3972b8
3 changed files with 4 additions and 3 deletions

View File

@ -116,7 +116,7 @@ void NoteTrackMenuTable::OnChangeOctave(wxCommandEvent &event)
pTrack->ShiftNoteRange((bDown) ? -12 : 12);
AudacityProject *const project = ::GetActiveProject();
project->ModifyState(true);
project->ModifyState(false);
mpData->result = RefreshCode::RefreshAll;
}

View File

@ -81,7 +81,7 @@ unsigned NoteTrackVRulerControls::HandleWheelRotation
return RefreshNone;
}
pProject->ModifyState(true);
pProject->ModifyState(false);
return RefreshCell | UpdateVRuler;
}

View File

@ -221,6 +221,7 @@ void NoteTrackVRulerMenuTable::OnZoom( int iZoomCode ){
break;
}
GetActiveProject()->ModifyState(false);
}
@ -307,7 +308,7 @@ UIHandle::Result NoteTrackVZoomHandle::Release
}
mZoomEnd = mZoomStart = 0;
pProject->ModifyState(true);
pProject->ModifyState(false);
return RefreshAll;
}