mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-08 04:09:15 -04:00
fix(keybinds): guard missing fields in cheatsheet search filter
Fixes #2116
This commit is contained in:
@@ -81,7 +81,7 @@ DankModal {
|
|||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
Layout.alignment: Qt.AlignLeft
|
Layout.alignment: Qt.AlignLeft
|
||||||
text: KeybindsService.cheatsheet.title || i18n("Keybinds")
|
text: KeybindsService.cheatsheet.title || I18n.tr("Keybinds")
|
||||||
font.pixelSize: Theme.fontSizeLarge
|
font.pixelSize: Theme.fontSizeLarge
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
color: Theme.primary
|
color: Theme.primary
|
||||||
@@ -133,9 +133,9 @@ DankModal {
|
|||||||
let hasSubcats = false;
|
let hasSubcats = false;
|
||||||
for (let i = 0; i < binds.length; i++) {
|
for (let i = 0; i < binds.length; i++) {
|
||||||
const bind = binds[i];
|
const bind = binds[i];
|
||||||
const keyLower = bind.key.toLowerCase();
|
const keyLower = (bind.key || "").toLowerCase();
|
||||||
const descLower = bind.desc.toLowerCase();
|
const descLower = (bind.desc || "").toLowerCase();
|
||||||
const actionLower = bind.action.toLowerCase();
|
const actionLower = (bind.action || "").toLowerCase();
|
||||||
|
|
||||||
if (bind.hideOnOverlay)
|
if (bind.hideOnOverlay)
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user