1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Desktop: Always show new note buttons (Regression) (#7850)

This commit is contained in:
Julien 2023-03-03 19:28:12 +08:00 committed by GitHub
parent 01f63b3d97
commit 4bee6ffc90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,7 +182,8 @@ function NoteListControls(props: Props) {
const mapStateToProps = (state: AppState) => {
return {
showNewNoteButtons: state.focusedField !== 'globalSearch',
// TODO: showNewNoteButtons and the logic associated is not needed anymore.
showNewNoteButtons: true,
sortOrderButtonsVisible: state.settings['notes.sortOrder.buttonsVisible'],
sortOrderField: state.settings['notes.sortOrder.field'],
sortOrderReverse: state.settings['notes.sortOrder.reverse'],