mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-30 00:12:50 -05:00
fix: System Updater focus
This commit is contained in:
@@ -251,12 +251,17 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
FocusScope {
|
||||||
width: parent.width - Theme.spacingM * 2
|
width: parent.width - Theme.spacingM * 2
|
||||||
spacing: Theme.spacingXS
|
height: customCommandColumn.implicitHeight
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: Theme.spacingM
|
anchors.leftMargin: Theme.spacingM
|
||||||
|
|
||||||
|
Column {
|
||||||
|
id: customCommandColumn
|
||||||
|
width: parent.width
|
||||||
|
spacing: Theme.spacingXS
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: I18n.tr("System update custom command")
|
text: I18n.tr("System update custom command")
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
@@ -281,15 +286,29 @@ Item {
|
|||||||
onTextEdited: {
|
onTextEdited: {
|
||||||
SettingsData.setUpdaterCustomCommand(text.trim());
|
SettingsData.setUpdaterCustomCommand(text.trim());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
onPressed: mouse => {
|
||||||
|
updaterCustomCommand.forceActiveFocus()
|
||||||
|
mouse.accepted = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
FocusScope {
|
||||||
width: parent.width - Theme.spacingM * 2
|
width: parent.width - Theme.spacingM * 2
|
||||||
spacing: Theme.spacingXS
|
height: terminalParamsColumn.implicitHeight
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: Theme.spacingM
|
anchors.leftMargin: Theme.spacingM
|
||||||
|
|
||||||
|
Column {
|
||||||
|
id: terminalParamsColumn
|
||||||
|
width: parent.width
|
||||||
|
spacing: Theme.spacingXS
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: I18n.tr("Terminal custom additional parameters")
|
text: I18n.tr("Terminal custom additional parameters")
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
@@ -314,6 +333,15 @@ Item {
|
|||||||
onTextEdited: {
|
onTextEdited: {
|
||||||
SettingsData.setUpdaterTerminalAdditionalParams(text.trim());
|
SettingsData.setUpdaterTerminalAdditionalParams(text.trim());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
onPressed: mouse => {
|
||||||
|
updaterTerminalCustomClass.forceActiveFocus()
|
||||||
|
mouse.accepted = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user