mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-13 23:12:02 +02:00
Merge pull request #494 from Aga-C/prevent-save-undo-redo
Prevented unnecessary save on undo/redo (#493)
This commit is contained in:
commit
d099a66759
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user