mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
OSD: when no OSD is selected, display no OSD
This commit is contained in:
@@ -1067,7 +1067,7 @@
|
||||
"templates": {
|
||||
"compositors": {
|
||||
"description": "Compositor-Theming.",
|
||||
"label": "Compositor/innen",
|
||||
"label": "Compositor",
|
||||
"niri": {
|
||||
"description": "Schreibe {filepath}. Benötigt niri v25.11+",
|
||||
"description-missing": "Benötigt die Installation von {app}"
|
||||
@@ -1740,7 +1740,7 @@
|
||||
"label": "Feststelltasten"
|
||||
},
|
||||
"section": {
|
||||
"description": "Wählen Sie die Ereignisse aus, die das OSD auslösen. Wenn keine Ereignisse ausgewählt werden, lösen alle verfügbaren Ereignisse das OSD aus.",
|
||||
"description": "Wählen Sie die Ereignisse aus, die das OSD auslösen.",
|
||||
"label": "OSD-Auslöseereignisse"
|
||||
},
|
||||
"volume": {
|
||||
|
||||
@@ -1740,7 +1740,7 @@
|
||||
"label": "Lock keys"
|
||||
},
|
||||
"section": {
|
||||
"description": "Select the events that trigger the OSD. If no events are selected, all available events will trigger the OSD.",
|
||||
"description": "Select the events that trigger the OSD.",
|
||||
"label": "OSD trigger events"
|
||||
},
|
||||
"volume": {
|
||||
|
||||
@@ -1740,7 +1740,7 @@
|
||||
"label": "Teclas de bloqueo"
|
||||
},
|
||||
"section": {
|
||||
"description": "Seleccione los eventos que activan el OSD. Si no se selecciona ningún evento, todos los eventos disponibles activarán el OSD.",
|
||||
"description": "Seleccione los eventos que activan el OSD.",
|
||||
"label": "Eventos de activación OSD"
|
||||
},
|
||||
"volume": {
|
||||
|
||||
@@ -1740,7 +1740,7 @@
|
||||
"label": "Touches de verrouillage"
|
||||
},
|
||||
"section": {
|
||||
"description": "Sélectionnez les événements qui déclenchent l'OSD. Si aucun événement n'est sélectionné, tous les événements disponibles déclencheront l'OSD.",
|
||||
"description": "Sélectionnez les événements qui déclenchent l'OSD.",
|
||||
"label": "Événements de déclenchement OSD"
|
||||
},
|
||||
"volume": {
|
||||
|
||||
@@ -1740,7 +1740,7 @@
|
||||
"label": "ロックキー"
|
||||
},
|
||||
"section": {
|
||||
"description": "OSD を表示するトリガー(イベント)を選択します。何も選択しない場合、すべてのイベントで表示されます。",
|
||||
"description": "OSD を表示するトリガー(イベント)を選択します。",
|
||||
"label": "OSD のトリガーイベント"
|
||||
},
|
||||
"volume": {
|
||||
|
||||
@@ -1740,7 +1740,7 @@
|
||||
"label": "Vergrendeltoetsen"
|
||||
},
|
||||
"section": {
|
||||
"description": "Selecteer de gebeurtenissen die de OSD activeren. Als er geen gebeurtenissen zijn geselecteerd, activeren alle beschikbare gebeurtenissen de OSD.",
|
||||
"description": "Selecteer de gebeurtenissen die de OSD activeren.",
|
||||
"label": "OSD triggergebeurtenissen"
|
||||
},
|
||||
"volume": {
|
||||
|
||||
@@ -1740,7 +1740,7 @@
|
||||
"label": "Teclas de bloqueio"
|
||||
},
|
||||
"section": {
|
||||
"description": "Selecione os eventos que acionam o OSD. Se nenhum evento for selecionado, todos os eventos disponíveis acionarão o OSD.",
|
||||
"description": "Selecione os eventos que acionam o OSD.",
|
||||
"label": "Eventos de disparo OSD"
|
||||
},
|
||||
"volume": {
|
||||
|
||||
@@ -1740,7 +1740,7 @@
|
||||
"label": "Клавиши блокировки"
|
||||
},
|
||||
"section": {
|
||||
"description": "Выберите события, которые должны запускать экранное меню (OSD). Если события не выбраны, экранное меню будет запускаться при любом доступном событии.",
|
||||
"description": "Выберите события, которые должны запускать экранное меню (OSD).",
|
||||
"label": "События, запускающие экранное меню"
|
||||
},
|
||||
"volume": {
|
||||
|
||||
@@ -1740,7 +1740,7 @@
|
||||
"label": "Kilit tuşları"
|
||||
},
|
||||
"section": {
|
||||
"description": "OSD'yi tetikleyecek olayları seçin. Hiçbir olay seçilmezse, mevcut tüm olaylar OSD'yi tetikleyecektir.",
|
||||
"description": "OSD'yi tetikleyecek olayları seçin.",
|
||||
"label": "OSD tetikleme olayları"
|
||||
},
|
||||
"volume": {
|
||||
|
||||
@@ -1740,7 +1740,7 @@
|
||||
"label": "Клавіші блокування"
|
||||
},
|
||||
"section": {
|
||||
"description": "Виберіть події, які запускають екранне меню. Якщо жодну подію не вибрано, екранне меню запускатиметься всіма доступними подіями.",
|
||||
"description": "Виберіть події, які запускають екранне меню.",
|
||||
"label": "Події, що запускають OSD"
|
||||
},
|
||||
"volume": {
|
||||
|
||||
@@ -1740,7 +1740,7 @@
|
||||
"label": "锁定键"
|
||||
},
|
||||
"section": {
|
||||
"description": "选择触发OSD的事件。如果未选择任何事件,则所有可用事件都将触发OSD。",
|
||||
"description": "选择触发OSD的事件。",
|
||||
"label": "OSD触发事件"
|
||||
},
|
||||
"volume": {
|
||||
|
||||
+4
-4
@@ -48,9 +48,9 @@ Variants {
|
||||
// LockKey OSD enabled state (reactive to settings)
|
||||
readonly property bool lockKeyOSDEnabled: {
|
||||
const enabledTypes = Settings.data.osd.enabledTypes || [];
|
||||
// If enabledTypes is empty, all types are enabled (backwards compatibility)
|
||||
// If enabledTypes is empty, no types are enabled (no OSD will be shown)
|
||||
if (enabledTypes.length === 0)
|
||||
return true;
|
||||
return false;
|
||||
return enabledTypes.includes(OSD.Type.LockKey);
|
||||
}
|
||||
|
||||
@@ -178,9 +178,9 @@ Variants {
|
||||
// Check if a specific OSD type is enabled
|
||||
function isTypeEnabled(type) {
|
||||
const enabledTypes = Settings.data.osd.enabledTypes || [];
|
||||
// If enabledTypes is empty, all types are enabled (backwards compatibility)
|
||||
// If enabledTypes is empty, no types are enabled (no OSD will be shown)
|
||||
if (enabledTypes.length === 0)
|
||||
return true;
|
||||
return false;
|
||||
return enabledTypes.includes(type);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user