forked from quickshell/quickshell
widgets/wrapper: fix default child not being assigned initially
This commit is contained in:
parent
5b01ec032e
commit
8d63006bba
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ void WrapperManager::componentComplete() {
|
||||||
|
|
||||||
if (childItems.length() == 1) {
|
if (childItems.length() == 1) {
|
||||||
this->mDefaultChild = childItems.first();
|
this->mDefaultChild = childItems.first();
|
||||||
|
if (!child) child = this->mDefaultChild;
|
||||||
} else if (childItems.length() != 0) {
|
} else if (childItems.length() != 0) {
|
||||||
this->flags.setFlag(WrapperManager::HasMultipleChildren);
|
this->flags.setFlag(WrapperManager::HasMultipleChildren);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue