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
This commit is contained in:
Bhushan Shah 2020-11-19 17:01:28 +05:30
parent 3b3ff0a08e
commit 6969101760

View file

@ -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() {