Bug: filter close is broken when always show is enabled
This commit is contained in:
parent
af7f27dabd
commit
f78d1b812d
|
|
@ -51,8 +51,16 @@ class ViewScaffold extends StatelessWidget {
|
|||
entity.entityType == state.uiState.filterEntityType) {
|
||||
leading = IconButton(
|
||||
icon: Icon(Icons.clear),
|
||||
onPressed: () =>
|
||||
store.dispatch(UserPreferencesChanged(showFilterSidebar: false)),
|
||||
onPressed: () {
|
||||
if (state.prefState.alwaysShowFilterSidebar) {
|
||||
store.dispatch(FilterByEntity(
|
||||
entityType: state.uiState.filterEntityType,
|
||||
entityId: state.uiState.filterEntityId,
|
||||
));
|
||||
} else {
|
||||
store.dispatch(UserPreferencesChanged(showFilterSidebar: false));
|
||||
}
|
||||
},
|
||||
);
|
||||
} else if (isSettings) {
|
||||
leading = IconButton(
|
||||
|
|
|
|||
Loading…
Reference in New Issue