Commit 69691017 authored by Bhushan Shah's avatar Bhushan Shah 📱

Fix button toggle for night color and torch

The code which adds initial buttons only sets the initial property and
does not affect the binding, so we need to set this values manually
parent 3b3ff0a0
......@@ -58,6 +58,7 @@ Item {
function toggleTorch() {
plasmoid.nativeInterface.toggleTorch()
settingsModel.get(6).enabled = plasmoid.nativeInterface.torchEnabled
}
function toggleWifi() {
......@@ -94,6 +95,7 @@ Item {
compositorAdaptor.modeStaged = 3; // always on
}
compositorAdaptor.sendConfigurationAll();
settingsModel.get(10).enabled = compositorAdaptor.active;
}
function requestShutdown() {
......
Markdown is supported
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