diff --git a/qml/ClideAboutWindow.qml b/qml/ClideAboutWindow.qml index be5f034..81e6585 100644 --- a/qml/ClideAboutWindow.qml +++ b/qml/ClideAboutWindow.qml @@ -6,19 +6,22 @@ import QtQuick import QtQuick.Controls.Basic import clide.module 1.0 +import Logger 1.0 ApplicationWindow { id: root color: RustColors.gutter // Create the window with no frame and keep it on top. - flags: Qt.Window | Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint + flags: Qt.Tool | Qt.FramelessWindowHint height: 350 width: 450 + visible: root.active // Hide the window when it loses focus. onActiveChanged: { - if (!active) { + Logger.debug("Setting active: " + root.active) + if (!root.active) { root.visible = false; } }