fix config load on Mac
This commit is contained in:
parent
4b20250051
commit
5d133aa1a6
4 changed files with 12 additions and 4 deletions
|
@ -184,7 +184,7 @@ DrawerType2 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const nativeConfigStringItem = headerItem.children.find(c => c.objectName === "nativeConfigString");
|
const nativeConfigStringItem = configListView.findChildWithObjectName(headerItem.children, "nativeConfigString");
|
||||||
if (!nativeConfigStringItem) {
|
if (!nativeConfigStringItem) {
|
||||||
console.error("Failed to copy: nativeConfigString item not found in ListView")
|
console.error("Failed to copy: nativeConfigString item not found in ListView")
|
||||||
return
|
return
|
||||||
|
@ -206,7 +206,7 @@ DrawerType2 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const configTextItem = headerItem.children.find(c => c.objectName === "configText");
|
const configTextItem = configListView.findChildWithObjectName(headerItem.children, "configText");
|
||||||
if (!configTextItem) {
|
if (!configTextItem) {
|
||||||
console.error("Failed to copy: configText item not found in ListView")
|
console.error("Failed to copy: configText item not found in ListView")
|
||||||
return
|
return
|
||||||
|
|
|
@ -10,4 +10,12 @@ ListView {
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
reuseItems: true
|
reuseItems: true
|
||||||
|
|
||||||
|
function findChildWithObjectName(items, name) {
|
||||||
|
for (var i = 0; i < items.length; ++i) {
|
||||||
|
if (items[i].objectName === name)
|
||||||
|
return items[i];
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -199,7 +199,7 @@ PageType {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const cloakingCheckBoxItem = headerItem.children.find(c => c.objectName === "cloakingCheckBox");
|
const cloakingCheckBoxItem = listView.findChildWithObjectName(headerItem.children, "cloakingCheckBox");
|
||||||
if (!cloakingCheckBoxItem) {
|
if (!cloakingCheckBoxItem) {
|
||||||
console.error("cloakingCheckBox not found")
|
console.error("cloakingCheckBox not found")
|
||||||
return
|
return
|
||||||
|
|
|
@ -160,7 +160,7 @@ PageType {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const serverSelectorItem = headerItem.children.find(c => c.objectName === "serverSelector");
|
const serverSelectorItem = listView.findChildWithObjectName(headerItem.children, "serverSelector");
|
||||||
if (!serverSelectorItem) {
|
if (!serverSelectorItem) {
|
||||||
PageController.showBusyIndicator(false)
|
PageController.showBusyIndicator(false)
|
||||||
console.error("Failed to share: serverSelector item not found in ListView")
|
console.error("Failed to share: serverSelector item not found in ListView")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue