Force-reload background image on config reload

Make it possible to see the change without restarting Mirage if an
image used for the theme's background was edited, or if used did the
mistake of typing "/path/to/img" then corrects it to
"file:///path/to/img".
This commit is contained in:
miruka
2020-09-01 14:06:28 -04:00
parent 63ccca60cb
commit bd8c6ec0fc
2 changed files with 6 additions and 5 deletions

View File

@@ -32,7 +32,10 @@ Item {
readonly property alias idleManager: idleManager
function reloadSettings() {
py.loadSettings(() => { mainUI.pressAnimation.start() })
py.loadSettings(() => {
image.reload()
mainUI.pressAnimation.start()
})
}