settings: added daemon console

pull/2/head
Jacob Brydolf 8 years ago committed by Jaquee
parent b53ef00b36
commit 14a5bd5dcc
No known key found for this signature in database
GPG Key ID: 384E52B09F45DC39

@ -308,17 +308,57 @@ Rectangle {
daemonManager.stop();
}
}
StandardButton {
visible: true
// enabled: appWindow.daemonRunning
id: daemonConsolePopupButton
width: 110
text: qsTr("Show concole") + translationManager.emptyString
shadowReleasedColor: "#FF4304"
shadowPressedColor: "#B32D00"
releasedColor: "#FF6C3C"
pressedColor: "#FF4304"
onClicked: {
daemonConsolePopup.open();
}
}
}
}
// Daemon console
StandardDialog {
id: daemonConsolePopup
height:800
width:800
cancelVisible: false
title: qsTr("Daemon console")
onAccepted: {
close();
}
}
// fires on every page load
function onPageCompleted() {
console.log("Settings page loaded");
initSettings();
}
// fires only once
Component.onCompleted: {
daemonManager.daemonConsoleUpdated.connect(onDaemonConsoleUpdated)
}
function onDaemonConsoleUpdated(message){
// Update daemon console
daemonConsolePopup.textArea.append(message)
}
}