mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
NToggle should not manage its own state. Let the bindings do the job
This commit is contained in:
+1
-2
@@ -80,8 +80,7 @@ RowLayout {
|
||||
root.exited()
|
||||
}
|
||||
onClicked: {
|
||||
root.checked = !root.checked
|
||||
root.toggled(root.checked)
|
||||
root.toggled(!root.checked)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user