FGQCanvas: Fix UI visibility in daemon mode
This commit is contained in:
parent
6e465f9dbe
commit
77ef2b6b7e
1 changed files with 7 additions and 1 deletions
|
@ -7,10 +7,16 @@ Rectangle {
|
|||
color: "black"
|
||||
|
||||
// only show the UI on the main window
|
||||
property double __uiOpacity: (isMainWindow && _application.showUI) ? 1.0 : 0.0
|
||||
property double __uiOpacity: __shouldShowUi ? 1.0 : 0.0
|
||||
property bool __uiVisible: true
|
||||
readonly property bool __shouldShowUi: (isMainWindow && _application.showUI)
|
||||
readonly property bool isMainWindow: (_windowNumber === 0)
|
||||
|
||||
Component.onCompleted: {
|
||||
// synchronize insitial state of this
|
||||
__uiVisible = __shouldShowUi;
|
||||
}
|
||||
|
||||
Behavior on __uiOpacity {
|
||||
SequentialAnimation {
|
||||
ScriptAction { script: if (_application.showUI) __uiVisible = true; }
|
||||
|
|
Loading…
Add table
Reference in a new issue