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:
Lukáš Tinkl 2023-08-15 13:35:33 +02:00 committed by Lukáš Tinkl
parent 99ca9c28b5
commit f3526d6e01
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ StatusComboBox {
readonly property bool noneSelected: (!!root.enabledNetworks) ? root.enabledNetworks.count === 0 : false
// Persist selection between selectPopupLoader reloads
property var currentModel: layer1Networks
property var currentModel: layer2Networks
property int currentIndex: 0
}
@ -116,7 +116,7 @@ StatusComboBox {
visible: !d.allSelected && chainRepeater.count > 0
Repeater {
id: chainRepeater
model: root.enabledNetworks
model: root.multiSelection ? root.enabledNetworks : []
delegate: StatusRoundedImage {
width: 24
height: 24

View File

@ -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.
QtObject {
property bool enabled: false
property var currentModel: root.layer1Networks
property var currentModel: root.layer2Networks
property int currentIndex: 0
}