plugins/runcommand: set Dialog preferredWidth
The Add command dialog currently does not set a preferredWidth, which seems to cause repeated binding loops and a lot of log spam until the dialog is actually put on screen. This change sets the preferredWidth to 20*gridUnit, which seems to be the typical size used in small dialogs and is about the size that the dialog has without a width explicitly set.
This commit is contained in:
parent
3e7936dc08
commit
ba5061a215
1 changed files with 1 additions and 0 deletions
|
@ -72,6 +72,7 @@ ListView {
|
||||||
title: i18nc("@title:window", "Add Command")
|
title: i18nc("@title:window", "Add Command")
|
||||||
|
|
||||||
padding: Kirigami.Units.largeSpacing
|
padding: Kirigami.Units.largeSpacing
|
||||||
|
preferredWidth: Kirigami.Units.gridUnit * 20
|
||||||
|
|
||||||
property Kirigami.Action addCommandAction: Kirigami.Action {
|
property Kirigami.Action addCommandAction: Kirigami.Action {
|
||||||
text: i18nc("@action:button", "Add")
|
text: i18nc("@action:button", "Add")
|
||||||
|
|
Loading…
Reference in a new issue