File tree 3 files changed +19
-3
lines changed
3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ ApplicationWindow {
81
81
optionsModel .onboard ()
82
82
if (AppMode .walletEnabled && AppMode .isDesktop ) {
83
83
main .push (desktopWallets)
84
- main .push (addWallet )
84
+ main .push (addWalletFlow )
85
85
} else {
86
86
main .push (node)
87
87
}
@@ -91,11 +91,15 @@ ApplicationWindow {
91
91
92
92
Component {
93
93
id: desktopWallets
94
- DesktopWallets {}
94
+ DesktopWallets {
95
+ onAddWallet: {
96
+ main .push (addWalletFlow)
97
+ }
98
+ }
95
99
}
96
100
97
101
Component {
98
- id: addWallet
102
+ id: addWalletFlow
99
103
AddWallet {
100
104
onFinished: {
101
105
main .pop ()
Original file line number Diff line number Diff line change 19
19
20
20
ButtonGroup { id: navigationTabs }
21
21
22
+ signal addWallet ()
23
+
22
24
header: NavigationBar2 {
23
25
id: navBar
24
26
leftItem: WalletBadge {
@@ -40,6 +42,10 @@ Page {
40
42
closePolicy: Popup .CloseOnPressOutside
41
43
x: 0
42
44
y: parent .height
45
+
46
+ onAddWallet: {
47
+ root .addWallet ()
48
+ }
43
49
}
44
50
}
45
51
centerItem: RowLayout {
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ Popup {
16
16
implicitWidth: 250
17
17
clip: true
18
18
19
+ signal addWallet ()
20
+
19
21
background: Item {
20
22
anchors .fill : parent
21
23
Rectangle {
@@ -89,6 +91,10 @@ Popup {
89
91
90
92
AddWalletButton {
91
93
id: addWallet
94
+ onClicked: {
95
+ root .addWallet ()
96
+ root .close ()
97
+ }
92
98
}
93
99
}
94
100
}
You can’t perform that action at this time.
0 commit comments