This commit is contained in:
2026-02-28 20:13:03 +02:00
parent 65b87cb9c6
commit 71c32d82ec
2 changed files with 31 additions and 7 deletions

View File

@@ -38,8 +38,12 @@ Item {
}
function menuLength() {
if (root.inBluetoothMenu && bluetoothRepeater)
return bluetoothRepeater.count;
if (!menuModel)
return 0;
if (typeof menuModel.count === "function")
return menuModel.count();
if (menuModel.count !== undefined)
return menuModel.count;
if (menuModel.length !== undefined)