From 4bee6ffc900aa714fe171e6e673fcfb7309b43e5 Mon Sep 17 00:00:00 2001 From: Julien <32807437+julien-me@users.noreply.github.com> Date: Fri, 3 Mar 2023 19:28:12 +0800 Subject: [PATCH] Desktop: Always show new note buttons (Regression) (#7850) --- packages/app-desktop/gui/NoteListControls/NoteListControls.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/app-desktop/gui/NoteListControls/NoteListControls.tsx b/packages/app-desktop/gui/NoteListControls/NoteListControls.tsx index 96b2e2991..f3eb564f6 100644 --- a/packages/app-desktop/gui/NoteListControls/NoteListControls.tsx +++ b/packages/app-desktop/gui/NoteListControls/NoteListControls.tsx @@ -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'],