Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Add-ons
Commits
4aff80c2
Commit
4aff80c2
authored
Nov 06, 2020
by
Marco Martin
Browse files
use the new containmentType instead of the workaround
to know if we're in the systray, use the new containmentType property
parent
7a4fea3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
applets/weather/package/contents/ui/main.qml
View file @
4aff80c2
...
...
@@ -430,12 +430,9 @@ Item {
observationModel
:
root
.
observationModel
}
Component.onCompleted
:
{
// workaround for missing note about being in systray or similar (kde bug #388995)
// guess from cointainer structure data and make available to config page
plasmoid
.
nativeInterface
.
needsToBeSquare
=
(
plasmoid
.
parent
!==
null
&&
((
plasmoid
.
parent
.
pluginName
===
'
org.kde.plasma.private.systemtray
'
||
plasmoid
.
parent
.
objectName
===
'
taskItemContainer
'
)));
Binding
{
target
:
plasmoid
.
nativeInterface
property
:
"
needsToBeSquare
"
value
:
plasmoid
.
containmentType
===
PlasmaCore
.
Types
.
CustomEmbeddedContainment
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment