diff --git a/lib/redux/app/app_actions.dart b/lib/redux/app/app_actions.dart index 77a1d6cb6..c2c314fee 100644 --- a/lib/redux/app/app_actions.dart +++ b/lib/redux/app/app_actions.dart @@ -127,7 +127,7 @@ class UpdateUserPreferences implements PersistPrefs { this.menuMode, this.historyMode, this.showKanban, - this.showFilterSidebar, + this.isFilterVisible, this.rowsPerPage, this.colorTheme, this.customColors, @@ -143,7 +143,7 @@ class UpdateUserPreferences implements PersistPrefs { final bool longPressSelectionIsDefault; final bool requireAuthentication; final bool isPreviewVisible; - final bool showFilterSidebar; + final bool isFilterVisible; final bool showKanban; final String accentColor; final int rowsPerPage; diff --git a/lib/redux/ui/pref_reducer.dart b/lib/redux/ui/pref_reducer.dart index 1b24dfa42..cf9c92afa 100644 --- a/lib/redux/ui/pref_reducer.dart +++ b/lib/redux/ui/pref_reducer.dart @@ -257,7 +257,7 @@ Reducer showKanbanReducer = combineReducers([ Reducer isFilterVisibleReducer = combineReducers([ TypedReducer((value, action) { - return action.showFilterSidebar ?? value; + return action.isFilterVisible ?? value; }), ]); diff --git a/lib/ui/app/buttons/bottom_buttons.dart b/lib/ui/app/buttons/bottom_buttons.dart index b3eecbc1e..12cabae45 100644 --- a/lib/ui/app/buttons/bottom_buttons.dart +++ b/lib/ui/app/buttons/bottom_buttons.dart @@ -88,7 +88,7 @@ class BottomButtons extends StatelessWidget { message: localization.hideSidebar, child: InkWell( onTap: () => store.dispatch( - UpdateUserPreferences(showFilterSidebar: false)), + UpdateUserPreferences(isFilterVisible: false)), child: Padding( padding: const EdgeInsets.symmetric(horizontal: 8), child: Icon(Icons.chevron_left), diff --git a/lib/ui/app/entity_top_filter.dart b/lib/ui/app/entity_top_filter.dart index 2097fef20..ee5b54691 100644 --- a/lib/ui/app/entity_top_filter.dart +++ b/lib/ui/app/entity_top_filter.dart @@ -59,7 +59,7 @@ class EntityTopFilter extends StatelessWidget { InkWell( onTap: () { store.dispatch(UpdateUserPreferences( - showFilterSidebar: !prefState.isFilterVisible)); + isFilterVisible: !prefState.isFilterVisible)); }, child: Row( crossAxisAlignment: CrossAxisAlignment.center,