From e9ebee180e156a8142c5127d66733437adc000cd Mon Sep 17 00:00:00 2001 From: Xavier Michelon Date: Fri, 23 Sep 2022 10:46:30 +0200 Subject: [PATCH] =?UTF-8?q?GODT-1479:=20fix=20hover=20on=20=E2=80=9COpen?= =?UTF-8?q?=20Bridge=E2=80=9D=20in=20status=20window.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bridge-gui/bridge-gui/qml/StatusWindow.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/internal/frontend/bridge-gui/bridge-gui/qml/StatusWindow.qml b/internal/frontend/bridge-gui/bridge-gui/qml/StatusWindow.qml index 50bcd1f6..106ed4bd 100644 --- a/internal/frontend/bridge-gui/bridge-gui/qml/StatusWindow.qml +++ b/internal/frontend/bridge-gui/bridge-gui/qml/StatusWindow.qml @@ -43,6 +43,13 @@ Window { signal showSignIn(string username) signal quit() + onVisibleChanged: { + if (visible) { // GODT-1479 restore the hover-able status that may have been disabled when clicking on the 'Open Bridge' button. + openBridgeButton.hoverEnabled = true + openBridgeButton.focus = false + } + } + ColumnLayout { id: contentLayout @@ -240,6 +247,7 @@ Window { spacing: 0 Button { + id: openBridgeButton colorScheme: root.colorScheme secondary: true text: qsTr("Open Bridge") @@ -248,6 +256,9 @@ Window { labelType: Label.LabelType.Caption_semibold onClicked: { + // GODT-1479: we disable hover for the button to avoid a visual glitch where the button is + // wrongly hovered when re-opening the status window after clicking + hoverEnabled = false; root.showMainWindow() root.close() }