Call setHandleWidth() to set initial size for splitDragHandleSize

There was only a connect on change, no initial setting.

BUG: 498078
This commit is contained in:
Kurt Hindenburg
2025-02-22 15:56:37 -05:00
committed by Tomaz Canabrava
parent ca5461dc20
commit 5b0fe40730

View File

@@ -54,6 +54,7 @@ ViewSplitter::ViewSplitter(QWidget *parent)
, _id(++lastSplitterId)
{
setAcceptDrops(true);
setHandleWidth(calculateHandleWidth(KonsoleSettings::self()->splitDragHandleSize()));
connect(KonsoleSettings::self(), &KonsoleSettings::configChanged, this, [this] {
setHandleWidth(calculateHandleWidth(KonsoleSettings::self()->splitDragHandleSize()));
});