Lockscreen buttons, HoverIconButton component added

This commit is contained in:
2026-05-16 00:14:58 +02:00
parent 97b657ce9a
commit d9afc6c7c7
3 changed files with 74 additions and 8 deletions
@@ -22,6 +22,13 @@ ColumnLayout {
Config.save();
}
function deleteTimeoutEntry(index) {
let list = [...Config.general.idle.timeouts];
list.splice(index, 1);
Config.general.idle.timeouts = list;
Config.save();
}
function updateTimeoutEntry(i, key, value) {
const list = [...Config.general.idle.timeouts];
let entry = list[i];
@@ -49,6 +56,9 @@ ColumnLayout {
onAddActiveActionRequested: {
root.updateTimeoutEntry(index, "activeAction", "");
}
onDeleteRequested: function (index) {
root.deleteTimeoutEntry(index);
}
onFieldEdited: function (key, value) {
root.updateTimeoutEntry(index, key, value);
}