show popup for user notifications
This commit is contained in:
@@ -25,6 +25,7 @@ ApplicationWindow
|
|||||||
|
|
||||||
header: ToolBar {
|
header: ToolBar {
|
||||||
id: toolbar
|
id: toolbar
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
@@ -81,7 +82,7 @@ ApplicationWindow
|
|||||||
Image {
|
Image {
|
||||||
Layout.preferredWidth: constants.iconSizeSmall
|
Layout.preferredWidth: constants.iconSizeSmall
|
||||||
Layout.preferredHeight: constants.iconSizeSmall
|
Layout.preferredHeight: constants.iconSizeSmall
|
||||||
visible: Daemon.currentWallet.isWatchOnly
|
visible: Daemon.currentWallet && Daemon.currentWallet.isWatchOnly
|
||||||
source: '../../icons/eye1.png'
|
source: '../../icons/eye1.png'
|
||||||
scale: 1.5
|
scale: 1.5
|
||||||
}
|
}
|
||||||
@@ -212,4 +213,11 @@ ApplicationWindow
|
|||||||
dialog.open()
|
dialog.open()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Connections {
|
||||||
|
target: AppController
|
||||||
|
function onUserNotify(message) {
|
||||||
|
var item = app.notificationPopup.createObject(app, {'text': message})
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user