File tree Expand file tree Collapse file tree 4 files changed +52
-0
lines changed Expand file tree Collapse file tree 4 files changed +52
-0
lines changed Original file line number Diff line number Diff line change @@ -366,6 +366,7 @@ QML_RES_QML = \
366
366
qml/pages/node/NodeRunner.qml \
367
367
qml/pages/node/NodeSettings.qml \
368
368
qml/pages/node/Peers.qml \
369
+ qml/pages/node/Shutdown.qml \
369
370
qml/pages/onboarding/OnboardingBlockclock.qml \
370
371
qml/pages/onboarding/OnboardingConnection.qml \
371
372
qml/pages/onboarding/OnboardingCover.qml \
Original file line number Diff line number Diff line change 35
35
<file>pages/node/NodeRunner.qml</file>
36
36
<file>pages/node/NodeSettings.qml</file>
37
37
<file>pages/node/Peers.qml</file>
38
+ <file>pages/node/Shutdown.qml</file>
38
39
<file>pages/onboarding/OnboardingBlockclock.qml</file>
39
40
<file>pages/onboarding/OnboardingConnection.qml</file>
40
41
<file>pages/onboarding/OnboardingCover.qml</file>
Original file line number Diff line number Diff line change @@ -25,6 +25,14 @@ ApplicationWindow {
25
25
anchors .fill : parent
26
26
}
27
27
28
+ Connections {
29
+ target: nodeModel
30
+ function onRequestedShutdown () {
31
+ main .clear ()
32
+ main .push (shutdown)
33
+ }
34
+ }
35
+
28
36
Component {
29
37
id: onboardingWizard
30
38
SwipeView {
@@ -43,6 +51,11 @@ ApplicationWindow {
43
51
}
44
52
}
45
53
54
+ Component {
55
+ id: shutdown
56
+ Shutdown {}
57
+ }
58
+
46
59
Component {
47
60
id: node
48
61
SwipeView {
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2023 The Bitcoin Core developers
2
+ // Distributed under the MIT software license, see the accompanying
3
+ // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
+
5
+ import QtQuick 2.15
6
+ import QtQuick.Controls 2.15
7
+ import QtQuick.Layouts 1.15
8
+ import "../../controls"
9
+
10
+ Page {
11
+ background: null
12
+
13
+ ColumnLayout {
14
+ anchors .centerIn : parent
15
+ width: parent .width
16
+ spacing: 10
17
+ Button {
18
+ Layout .alignment : Qt .AlignCenter
19
+ Layout .bottomMargin : 20
20
+ background: null
21
+ icon .source : " image://images/shutdown"
22
+ icon .color : Theme .color .neutral9
23
+ icon .width : 60
24
+ icon .height : 60
25
+ }
26
+ Header {
27
+ Layout .alignment : Qt .AlignCenter
28
+ Layout .fillWidth : true
29
+ Layout .leftMargin : 20
30
+ Layout .rightMargin : 20
31
+ header: qsTr (" Saving..." )
32
+ headerBold: true
33
+ description: qsTr (" Do not shut down the computer until this is done." )
34
+ descriptionColor: Theme .color .neutral7
35
+ }
36
+ }
37
+ }
You can’t perform that action at this time.
0 commit comments