1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-13 22:12:50 +02:00

Desktop: Fixes #1727: Keep back button when opening a note link from the search results

This commit is contained in:
Laurent Cozic
2019-07-13 17:58:59 +01:00
parent ca4dfe0f0f
commit be1f57a8a6

View File

@@ -366,7 +366,10 @@ const reducer = (state = defaultState, action) => {
historyNotes.pop();
}
newState.historyNotes = historyNotes;
} else {
} else if (newState !== state) {
// Clear the note history if folder and selected note have actually been changed. For example
// they won't change if they are already selected. That way, the "Back" button to go to the
// previous note wll stay.
newState.historyNotes = [];
}