mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
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:
parent
3b3ff0a08e
commit
6969101760
1 changed files with 2 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue