fix tooltip binding loop on _shown via assignedScreen mirror
This commit is contained in:
parent
4f5cf5f5fa
commit
d55753ab28
2 changed files with 7 additions and 1 deletions
|
|
@ -11,8 +11,13 @@ PanelWindow {
|
|||
visible: _winVisible
|
||||
color: "transparent"
|
||||
|
||||
// Mirror of `screen` captured at construction. Reading `root.screen`
|
||||
// directly in `_shown` couples it to visibility transitions (PanelWindow
|
||||
// re-evaluates `screen` when mapped/unmapped), which feeds back into
|
||||
// `_shown` via `_winVisible` and trips a binding loop.
|
||||
property var assignedScreen: null
|
||||
property bool _winVisible: false
|
||||
property bool _shown: M.TooltipState.visible && M.TooltipState.screen === root.screen
|
||||
property bool _shown: M.TooltipState.visible && M.TooltipState.screen === assignedScreen
|
||||
|
||||
on_ShownChanged: {
|
||||
if (_shown) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue