mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 16:17:03 +00:00
GODT-1479: fix hover on “Open Bridge” in status window.
This commit is contained in:
@ -43,6 +43,13 @@ Window {
|
|||||||
signal showSignIn(string username)
|
signal showSignIn(string username)
|
||||||
signal quit()
|
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 {
|
ColumnLayout {
|
||||||
id: contentLayout
|
id: contentLayout
|
||||||
|
|
||||||
@ -240,6 +247,7 @@ Window {
|
|||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
|
id: openBridgeButton
|
||||||
colorScheme: root.colorScheme
|
colorScheme: root.colorScheme
|
||||||
secondary: true
|
secondary: true
|
||||||
text: qsTr("Open Bridge")
|
text: qsTr("Open Bridge")
|
||||||
@ -248,6 +256,9 @@ Window {
|
|||||||
labelType: Label.LabelType.Caption_semibold
|
labelType: Label.LabelType.Caption_semibold
|
||||||
|
|
||||||
onClicked: {
|
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.showMainWindow()
|
||||||
root.close()
|
root.close()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user