mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 11:52:05 +02:00
settingsLog: fix layout glitch when loaded first time 🐛
This commit is contained in:
parent
59fc48bd8b
commit
564f256f81
@ -68,16 +68,11 @@ Rectangle {
|
|||||||
text: qsTr("Log level") + translationManager.emptyString
|
text: qsTr("Log level") + translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
|
||||||
GridLayout {
|
|
||||||
id: logGrid
|
|
||||||
columns: appWindow.persistentSettings.logLevel === 5 ? 2 : 1
|
|
||||||
Layout.fillWidth: true
|
|
||||||
columnSpacing: 32 * scaleRatio
|
|
||||||
z: parent.z + 1
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: 0
|
spacing: 10 * scaleRatio
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
id: logColumn
|
||||||
|
z: parent.z + 1
|
||||||
|
|
||||||
ListModel {
|
ListModel {
|
||||||
id: logLevel
|
id: logLevel
|
||||||
@ -106,19 +101,19 @@ Rectangle {
|
|||||||
appWindow.persistentSettings.logLevel = currentIndex;
|
appWindow.persistentSettings.logLevel = currentIndex;
|
||||||
}
|
}
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredWidth: logGrid.width / 2
|
Layout.preferredWidth: logColumn.width
|
||||||
shadowReleasedColor: "#FF4304"
|
shadowReleasedColor: "#FF4304"
|
||||||
shadowPressedColor: "#B32D00"
|
shadowPressedColor: "#B32D00"
|
||||||
releasedColor: "#363636"
|
releasedColor: "#363636"
|
||||||
pressedColor: "#202020"
|
pressedColor: "#202020"
|
||||||
}
|
z: parent.z + 1
|
||||||
}
|
}
|
||||||
|
|
||||||
MoneroComponents.LineEdit {
|
MoneroComponents.LineEdit {
|
||||||
id: logCategories
|
id: logCategories
|
||||||
visible: persistentSettings.logLevel === 5
|
visible: logLevelDropdown.currentIndex === 5
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredWidth: logGrid.width / 2
|
Layout.preferredWidth: logColumn.width
|
||||||
text: appWindow.persistentSettings.logCategories
|
text: appWindow.persistentSettings.logCategories
|
||||||
placeholderText: "(e.g. *:WARNING,net.p2p:DEBUG)"
|
placeholderText: "(e.g. *:WARNING,net.p2p:DEBUG)"
|
||||||
placeholderFontSize: 14 * scaleRatio
|
placeholderFontSize: 14 * scaleRatio
|
||||||
@ -236,7 +231,7 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
logLevelDropdown.currentIndex = persistentSettings.logLevel;
|
logLevelDropdown.currentIndex = appWindow.persistentSettings.logLevel;
|
||||||
logLevelDropdown.update();
|
logLevelDropdown.update();
|
||||||
|
|
||||||
if(typeof daemonManager != "undefined")
|
if(typeof daemonManager != "undefined")
|
||||||
|
Loading…
Reference in New Issue
Block a user