File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -80,13 +80,17 @@ ApplicationWindow {
80
80
81
81
Component {
82
82
id: desktopWallets
83
- DesktopWallets {}
83
+ DesktopWallets {
84
+ onAddWallet: {
85
+ main .push (createWalletWizard)
86
+ }
87
+ }
84
88
}
85
89
86
90
Component {
87
91
id: createWalletWizard
88
92
CreateWalletWizard {
89
- onFinished: {
93
+ onFinished: {
90
94
main .pop ()
91
95
}
92
96
}
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 {
@@ -41,6 +43,10 @@ Page {
41
43
closePolicy: Popup .CloseOnPressOutside
42
44
x: 0
43
45
y: parent .height
46
+
47
+ onAddWallet: {
48
+ root .addWallet ()
49
+ }
44
50
}
45
51
}
46
52
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 {
@@ -95,6 +97,10 @@ Popup {
95
97
Layout .alignment : Qt .AlignHCenter
96
98
Layout .preferredWidth : 220
97
99
Layout .preferredHeight : 30
100
+ onClicked: {
101
+ root .addWallet ()
102
+ root .close ()
103
+ }
98
104
}
99
105
}
100
106
}
You can’t perform that action at this time.
0 commit comments