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
|
||||
}
|
||||
|
||||
const nativeConfigStringItem = headerItem.children.find(c => c.objectName === "nativeConfigString");
|
||||
const nativeConfigStringItem = configListView.findChildWithObjectName(headerItem.children, "nativeConfigString");
|
||||
if (!nativeConfigStringItem) {
|
||||
console.error("Failed to copy: nativeConfigString item not found in ListView")
|
||||
return
|
||||
|
@ -206,7 +206,7 @@ DrawerType2 {
|
|||
return
|
||||
}
|
||||
|
||||
const configTextItem = headerItem.children.find(c => c.objectName === "configText");
|
||||
const configTextItem = configListView.findChildWithObjectName(headerItem.children, "configText");
|
||||
if (!configTextItem) {
|
||||
console.error("Failed to copy: configText item not found in ListView")
|
||||
return
|
||||
|
|
|
@ -10,4 +10,12 @@ ListView {
|
|||
|
||||
clip: 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
|
||||
}
|
||||
|
||||
const cloakingCheckBoxItem = headerItem.children.find(c => c.objectName === "cloakingCheckBox");
|
||||
const cloakingCheckBoxItem = listView.findChildWithObjectName(headerItem.children, "cloakingCheckBox");
|
||||
if (!cloakingCheckBoxItem) {
|
||||
console.error("cloakingCheckBox not found")
|
||||
return
|
||||
|
|
|
@ -160,7 +160,7 @@ PageType {
|
|||
return
|
||||
}
|
||||
|
||||
const serverSelectorItem = headerItem.children.find(c => c.objectName === "serverSelector");
|
||||
const serverSelectorItem = listView.findChildWithObjectName(headerItem.children, "serverSelector");
|
||||
if (!serverSelectorItem) {
|
||||
PageController.showBusyIndicator(false)
|
||||
console.error("Failed to share: serverSelector item not found in ListView")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue