mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Fix multi-level subitems_url
This commit is contained in:
parent
abeef65e7d
commit
6f99f5d64c
1 changed files with 2 additions and 1 deletions
3
main.qml
3
main.qml
|
@ -920,12 +920,13 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
var suburl = d.subitems_url
|
||||||
if (subosmodel.count>1)
|
if (subosmodel.count>1)
|
||||||
{
|
{
|
||||||
subosmodel.remove(1, subosmodel.count-1)
|
subosmodel.remove(1, subosmodel.count-1)
|
||||||
}
|
}
|
||||||
|
|
||||||
httpRequest(d.subitems_url, function (x) {
|
httpRequest(suburl, function (x) {
|
||||||
var o = JSON.parse(x.responseText)
|
var o = JSON.parse(x.responseText)
|
||||||
if (!"os_list" in o) {
|
if (!"os_list" in o) {
|
||||||
onError(qsTr("Error parsing os_list.json"))
|
onError(qsTr("Error parsing os_list.json"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue