mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 03:42: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
|
||||
}
|
||||
|
||||
GridLayout {
|
||||
id: logGrid
|
||||
columns: appWindow.persistentSettings.logLevel === 5 ? 2 : 1
|
||||
Layout.fillWidth: true
|
||||
columnSpacing: 32 * scaleRatio
|
||||
z: parent.z + 1
|
||||
|
||||
ColumnLayout {
|
||||
spacing: 0
|
||||
spacing: 10 * scaleRatio
|
||||
Layout.fillWidth: true
|
||||
id: logColumn
|
||||
z: parent.z + 1
|
||||
|
||||
ListModel {
|
||||
id: logLevel
|
||||
@ -106,19 +101,19 @@ Rectangle {
|
||||
appWindow.persistentSettings.logLevel = currentIndex;
|
||||
}
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredWidth: logGrid.width / 2
|
||||
Layout.preferredWidth: logColumn.width
|
||||
shadowReleasedColor: "#FF4304"
|
||||
shadowPressedColor: "#B32D00"
|
||||
releasedColor: "#363636"
|
||||
pressedColor: "#202020"
|
||||
}
|
||||
z: parent.z + 1
|
||||
}
|
||||
|
||||
MoneroComponents.LineEdit {
|
||||
id: logCategories
|
||||
visible: persistentSettings.logLevel === 5
|
||||
visible: logLevelDropdown.currentIndex === 5
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredWidth: logGrid.width / 2
|
||||
Layout.preferredWidth: logColumn.width
|
||||
text: appWindow.persistentSettings.logCategories
|
||||
placeholderText: "(e.g. *:WARNING,net.p2p:DEBUG)"
|
||||
placeholderFontSize: 14 * scaleRatio
|
||||
@ -236,7 +231,7 @@ Rectangle {
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
logLevelDropdown.currentIndex = persistentSettings.logLevel;
|
||||
logLevelDropdown.currentIndex = appWindow.persistentSettings.logLevel;
|
||||
logLevelDropdown.update();
|
||||
|
||||
if(typeof daemonManager != "undefined")
|
||||
|
Loading…
Reference in New Issue
Block a user