You've already forked joplin
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:
@@ -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 = [];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user