Skip to content

Commit

Permalink
plugins/runcommand: set Dialog preferredWidth
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Christoph Wolk authored and aleixpol committed Sep 8, 2024
1 parent 3e7936d commit ba5061a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/runcommand/kdeconnect_runcommand_config.qml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ ListView {
title: i18nc("@title:window", "Add Command")

padding: Kirigami.Units.largeSpacing
preferredWidth: Kirigami.Units.gridUnit * 20

property Kirigami.Action addCommandAction: Kirigami.Action {
text: i18nc("@action:button", "Add")
Expand Down

0 comments on commit ba5061a

Please sign in to comment.