Skip to content

Commit

Permalink
gui/macOS: Use attached tooltip properties rather than creating a new…
Browse files Browse the repository at this point in the history
… tooltip in request sync button

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Feb 26, 2025
1 parent 7915800 commit 85c3477
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/gui/macOS/ui/FileProviderSyncStatus.qml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ GridLayout {
hoverEnabled: true
onClicked: root.controller.signalFileProviderDomain(root.accountUserIdAtHost)

ToolTip {
visible: requestSyncButton.hovered
text: qsTr("Request a sync of changes for the VFS environment. macOS may ignore or delay this request.")
}
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: qsTr("Request a sync of changes for the VFS environment.\nmacOS may ignore or delay this request.")
}
}

0 comments on commit 85c3477

Please sign in to comment.