Commit ca980e72 authored by Marco Martin's avatar Marco Martin
Browse files

reset the page when reloaded

when the dialog gets closed the page parent changes to null
as well when the active config pages is switched.
when this appen, reload the config

parent 0217e0ec
......@@ -77,6 +77,15 @@ ColumnLayout {
// When the ui is open in systemsettings and the page is switched around,
// it gets reparented to null. use this to reload its config every time the
// page is current again. So any non saved change to the sensor list gets forgotten.
onParentChanged: {
if (parent) {
Component.onCompleted: loadConfig()
Connections {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment