mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-23 12:00:15 +01: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