mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-05 10:59:33 +00:00
Merge pull request #837 from eikek/fix/settings-reload
Fix update with current ui settings
This commit is contained in:
commit
ec142dfe1f
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user