1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +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 Laurent Cozic
parent b561460307
commit e07e248fea

View File

@ -296,7 +296,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'],