Skip to content

Commit 6268e4d

Browse files
committed
fix: islands not being recreated when hidden widgets reappear
refs: #431
1 parent b3d671a commit 6268e4d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

package/contents/ui/components/CustomBackground.qml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import "../"
1313
Rectangle {
1414
id: rect
1515
property var target
16+
property int targetIsHidden: target.applet?.plasmoid?.status === PlasmaCore.Types.HiddenStatus
1617
property int targetIndex
1718
property var main
1819
property bool animatePropertyChanges: Plasmoid.configuration.animatePropertyChanges
@@ -929,6 +930,16 @@ Rectangle {
929930
});
930931
}
931932

933+
// PlasmaCore.Types.HiddenStatus != !visible
934+
onTargetIsHiddenChanged: {
935+
if (!targetIsHidden) {
936+
Qt.callLater(function () {
937+
main.updateUnified();
938+
updateMaskDebounced();
939+
});
940+
}
941+
}
942+
932943
onBlurBehindChanged: {
933944
if (isWidget) {
934945
main.widgetsDoingBlur[maskIndex] = blurBehind;

0 commit comments

Comments
 (0)