mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-01 22:47:26 -04:00
Merge pull request #1922
8eb4f0dForce save daemon flags (xmrdsc)515d051daemonFlags input: fillWidth and force wrap (multiline) (xmrdsc)
This commit is contained in:
@@ -362,6 +362,7 @@ Rectangle{
|
||||
if (appWindow.daemonRunning) {
|
||||
appWindow.stopDaemon();
|
||||
} else {
|
||||
persistentSettings.daemonFlags = daemonFlags.text;
|
||||
appWindow.startDaemon(persistentSettings.daemonFlags);
|
||||
}
|
||||
}
|
||||
@@ -395,21 +396,18 @@ Rectangle{
|
||||
}
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
id: daemonFlagsRow
|
||||
|
||||
MoneroComponents.LineEditMulti {
|
||||
id: daemonFlags
|
||||
Layout.preferredWidth: 200
|
||||
Layout.fillWidth: true
|
||||
labelFontSize: 14 * scaleRatio
|
||||
fontSize: 15 * scaleRatio
|
||||
labelText: qsTr("Daemon startup flags") + translationManager.emptyString
|
||||
placeholderText: qsTr("(optional)") + translationManager.emptyString
|
||||
placeholderFontSize: 15 * scaleRatio
|
||||
text: appWindow.persistentSettings.daemonFlags
|
||||
addressValidation: false
|
||||
}
|
||||
MoneroComponents.LineEditMulti {
|
||||
id: daemonFlags
|
||||
Layout.fillWidth: true
|
||||
labelFontSize: 14 * scaleRatio
|
||||
fontSize: 15 * scaleRatio
|
||||
wrapMode: Text.WrapAnywhere
|
||||
labelText: qsTr("Daemon startup flags") + translationManager.emptyString
|
||||
placeholderText: qsTr("(optional)") + translationManager.emptyString
|
||||
placeholderFontSize: 15 * scaleRatio
|
||||
text: persistentSettings.daemonFlags
|
||||
addressValidation: false
|
||||
onEditingFinished: persistentSettings.daemonFlags = daemonFlags.text;
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
|
||||
Reference in New Issue
Block a user