forked from Silverfish/proton-bridge
GODT-1390: Fix autostart toggle
This commit is contained in:
@ -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()
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user