GODT-1390: Fix autostart toggle

This commit is contained in:
Alexander Bilyak
2021-10-27 17:16:48 +02:00
committed by Jakub
parent 42ced6694e
commit db7ead3901
2 changed files with 2 additions and 2 deletions

View File

@ -706,7 +706,7 @@ Window {
property bool isAutostartOn : true // Example of settings with loading state property bool isAutostartOn : true // Example of settings with loading state
function toggleAutostart(makeItActive) { function toggleAutostart(makeItActive) {
console.debug("-> autostart", makeItActive, root.isAutomaticUpdateOn) console.debug("-> autostart", makeItActive, root.isAutostartOn)
} }
signal toggleAutostartFinished() signal toggleAutostartFinished()

View File

@ -56,7 +56,7 @@ SettingsView {
checked: root.backend.isAutostartOn checked: root.backend.isAutostartOn
onClicked: { onClicked: {
autostart.loading = true autostart.loading = true
root.backend.toggleAutostart(!autoUpdate.checked) root.backend.toggleAutostart(!autostart.checked)
} }
Connections{ Connections{
target: root.backend target: root.backend