Merge pull request #494 from Aga-C/prevent-save-undo-redo

Prevented unnecessary save on undo/redo (#493)
This commit is contained in:
Tibor Kaputa 2022-02-03 22:39:25 +01:00 committed by GitHub
commit d099a66759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,7 +182,7 @@ class MainActivity : SimpleActivity() {
}
override fun onOptionsItemSelected(item: MenuItem): Boolean {
if (config.autosaveNotes) {
if (config.autosaveNotes && item.itemId != R.id.undo && item.itemId != R.id.redo) {
saveCurrentNote(false)
}