fix(Mint token): Network selector not shown properly
Fixes 2 problems, mainly visible when switching between test and non-test networks: - do not display network icons in single selection mode - make really sure the default chain is Optimism Fixes #11846
This commit is contained in:
parent
99ca9c28b5
commit
f3526d6e01
|
@ -66,7 +66,7 @@ StatusComboBox {
|
||||||
readonly property bool noneSelected: (!!root.enabledNetworks) ? root.enabledNetworks.count === 0 : false
|
readonly property bool noneSelected: (!!root.enabledNetworks) ? root.enabledNetworks.count === 0 : false
|
||||||
|
|
||||||
// Persist selection between selectPopupLoader reloads
|
// Persist selection between selectPopupLoader reloads
|
||||||
property var currentModel: layer1Networks
|
property var currentModel: layer2Networks
|
||||||
property int currentIndex: 0
|
property int currentIndex: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ StatusComboBox {
|
||||||
visible: !d.allSelected && chainRepeater.count > 0
|
visible: !d.allSelected && chainRepeater.count > 0
|
||||||
Repeater {
|
Repeater {
|
||||||
id: chainRepeater
|
id: chainRepeater
|
||||||
model: root.enabledNetworks
|
model: root.multiSelection ? root.enabledNetworks : []
|
||||||
delegate: StatusRoundedImage {
|
delegate: StatusRoundedImage {
|
||||||
width: 24
|
width: 24
|
||||||
height: 24
|
height: 24
|
||||||
|
|
|
@ -3,6 +3,6 @@ import QtQml 2.15
|
||||||
/// Inline component was failing on Linux with "Cannot assign to property of unknown type" so we need to use a separate file for it.
|
/// Inline component was failing on Linux with "Cannot assign to property of unknown type" so we need to use a separate file for it.
|
||||||
QtObject {
|
QtObject {
|
||||||
property bool enabled: false
|
property bool enabled: false
|
||||||
property var currentModel: root.layer1Networks
|
property var currentModel: root.layer2Networks
|
||||||
property int currentIndex: 0
|
property int currentIndex: 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue