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) {
|
entity.entityType == state.uiState.filterEntityType) {
|
||||||
leading = IconButton(
|
leading = IconButton(
|
||||||
icon: Icon(Icons.clear),
|
icon: Icon(Icons.clear),
|
||||||
onPressed: () =>
|
onPressed: () {
|
||||||
store.dispatch(UserPreferencesChanged(showFilterSidebar: false)),
|
if (state.prefState.alwaysShowFilterSidebar) {
|
||||||
|
store.dispatch(FilterByEntity(
|
||||||
|
entityType: state.uiState.filterEntityType,
|
||||||
|
entityId: state.uiState.filterEntityId,
|
||||||
|
));
|
||||||
|
} else {
|
||||||
|
store.dispatch(UserPreferencesChanged(showFilterSidebar: false));
|
||||||
|
}
|
||||||
|
},
|
||||||
);
|
);
|
||||||
} else if (isSettings) {
|
} else if (isSettings) {
|
||||||
leading = IconButton(
|
leading = IconButton(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue