fix(web): issue with hide pinned and hide protected not having effect

This commit is contained in:
Mo
2022-10-26 06:45:45 -05:00
parent 350fbbd74d
commit 55296dcc77

View File

@@ -491,14 +491,14 @@ export class ItemListController
this.application.getPreference(PrefKey.NotesShowTrashed, PrefDefaults[PrefKey.NotesShowTrashed]), this.application.getPreference(PrefKey.NotesShowTrashed, PrefDefaults[PrefKey.NotesShowTrashed]),
) )
newDisplayOptions.includePinned = useBoolean( newDisplayOptions.includePinned = !useBoolean(
!selectedTag?.preferences?.hidePinned, selectedTag?.preferences?.hidePinned,
!this.application.getPreference(PrefKey.NotesHidePinned, PrefDefaults[PrefKey.NotesHidePinned]), this.application.getPreference(PrefKey.NotesHidePinned, PrefDefaults[PrefKey.NotesHidePinned]),
) )
newDisplayOptions.includeProtected = useBoolean( newDisplayOptions.includeProtected = !useBoolean(
!selectedTag?.preferences?.hideProtected, selectedTag?.preferences?.hideProtected,
!this.application.getPreference(PrefKey.NotesHideProtected, PrefDefaults[PrefKey.NotesHideProtected]), this.application.getPreference(PrefKey.NotesHideProtected, PrefDefaults[PrefKey.NotesHideProtected]),
) )
newWebDisplayOptions.hideNotePreview = useBoolean( newWebDisplayOptions.hideNotePreview = useBoolean(