Merge pull request #837 from eikek/fix/settings-reload

Fix update with current ui settings
This commit is contained in:
mergify[bot] 2021-05-28 22:52:23 +00:00 committed by GitHub
commit ec142dfe1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,6 +288,9 @@ applyClientSettings model settings =
let
setTheme =
Ports.setUiTheme settings.uiTheme
model_ =
{ model | uiSettings = settings }
in
Util.Update.andThen2
[ \m ->
@ -299,7 +302,7 @@ applyClientSettings model settings =
, updateHome Page.Home.Data.UiSettingsUpdated
, updateItemDetail Page.ItemDetail.Data.UiSettingsUpdated
]
{ model | uiSettings = settings }
model_
updateItemDetail : Page.ItemDetail.Data.Msg -> Model -> ( Model, Cmd Msg, Sub Msg )