qml: cleanup prev commit, add default icons to MessageDialog, add question icon
This commit is contained in:
BIN
electrum/gui/icons/question.png
Normal file
BIN
electrum/gui/icons/question.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
@@ -8,6 +8,9 @@ import "controls"
|
||||
ElDialog {
|
||||
id: dialog
|
||||
title: qsTr("Message")
|
||||
iconSource: yesno
|
||||
? Qt.resolvedUrl('../../icons/question.png')
|
||||
: Qt.resolvedUrl('../../icons/info.png')
|
||||
|
||||
property bool yesno: false
|
||||
property alias text: message.text
|
||||
|
||||
@@ -245,10 +245,6 @@ Pane {
|
||||
text: qsTr('Lightning')
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr('Lightning Routing')
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
Layout.columnSpan: 2
|
||||
Layout.fillWidth: true
|
||||
@@ -260,7 +256,7 @@ Pane {
|
||||
if (activeFocus) {
|
||||
if (!checked) {
|
||||
var dialog = app.messageDialog.createObject(app, {
|
||||
text: qsTr('Using plain gossip mode is not recommended. Are you sure?'),
|
||||
text: qsTr('Using plain gossip mode is not recommended on mobile. Are you sure?'),
|
||||
yesno: true
|
||||
})
|
||||
dialog.yesClicked.connect(function() {
|
||||
|
||||
Reference in New Issue
Block a user