mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-14 04:16:33 +02:00
settings: log level selector
This commit is contained in:
parent
d8f9e7360f
commit
f2aefeebb3
5
main.qml
5
main.qml
@ -150,9 +150,11 @@ ApplicationWindow {
|
|||||||
|
|
||||||
function initialize() {
|
function initialize() {
|
||||||
console.log("initializing..")
|
console.log("initializing..")
|
||||||
|
|
||||||
walletInitialized = false;
|
walletInitialized = false;
|
||||||
|
|
||||||
|
// Use stored log level
|
||||||
|
walletManager.setLogLevel(persistentSettings.logLevel)
|
||||||
|
|
||||||
// setup language
|
// setup language
|
||||||
var locale = persistentSettings.locale
|
var locale = persistentSettings.locale
|
||||||
if (locale !== "") {
|
if (locale !== "") {
|
||||||
@ -716,6 +718,7 @@ ApplicationWindow {
|
|||||||
property bool is_recovering : false
|
property bool is_recovering : false
|
||||||
property bool customDecorations : true
|
property bool customDecorations : true
|
||||||
property string daemonFlags
|
property string daemonFlags
|
||||||
|
property int logLevel: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Information dialog
|
// Information dialog
|
||||||
|
@ -363,6 +363,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 {
|
Label {
|
||||||
id: guiVersion
|
id: guiVersion
|
||||||
Layout.topMargin: 8
|
Layout.topMargin: 8
|
||||||
@ -377,7 +398,6 @@ Rectangle {
|
|||||||
text: qsTr("Embedded Monero version: ") + Version.GUI_MONERO_VERSION + translationManager.emptyString
|
text: qsTr("Embedded Monero version: ") + Version.GUI_MONERO_VERSION + translationManager.emptyString
|
||||||
fontSize: 16
|
fontSize: 16
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Daemon console
|
// Daemon console
|
||||||
|
Loading…
Reference in New Issue
Block a user