mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-03-02 13:38:07 -05:00
Prevented unnecessary save on undo/redo (#493)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user