1
mirror of https://github.com/monero-project/monero-gui synced 2024-12-29 23:26:24 +01:00

Merge pull request #374

f2aefee settings: log level selector (Jaquee)
This commit is contained in:
Riccardo Spagni 2017-01-08 16:55:04 -08:00
commit b3424f73a8
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
2 changed files with 25 additions and 2 deletions

View File

@ -150,9 +150,11 @@ ApplicationWindow {
function initialize() {
console.log("initializing..")
walletInitialized = false;
// Use stored log level
walletManager.setLogLevel(persistentSettings.logLevel)
// setup language
var locale = persistentSettings.locale
if (locale !== "") {
@ -716,6 +718,7 @@ ApplicationWindow {
property bool is_recovering : false
property bool customDecorations : true
property string daemonFlags
property int logLevel: 0
}
// Information dialog

View File

@ -365,6 +365,27 @@ Rectangle {
}
}
// Log level
RowLayout {
Label {
id: logLevelLabel
color: "#4A4949"
text: qsTr("Log level") + translationManager.emptyString
fontSize: 16
}
ComboBox {
id: logLevel
model: [0,1,2,3,4]
currentIndex : appWindow.persistentSettings.logLevel;
onCurrentIndexChanged: {
console.log("log level changed: ",currentIndex);
walletManager.setLogLevel(currentIndex);
appWindow.persistentSettings.logLevel = currentIndex;
}
}
}
Label {
id: guiVersion
Layout.topMargin: 8
@ -379,7 +400,6 @@ Rectangle {
text: qsTr("Embedded Monero version: ") + Version.GUI_MONERO_VERSION + translationManager.emptyString
fontSize: 16
}
}
// Daemon console