From 385c13e40536bc70dc9d56a448f6d40a01505dfa Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 26 Apr 2023 20:28:47 +0800 Subject: [PATCH] Fix setting [undefined] to QFont in 'Sync now' button Signed-off-by: Claudio Cambra --- src/gui/tray/SyncStatus.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/tray/SyncStatus.qml b/src/gui/tray/SyncStatus.qml index c7dd907620f00..a1dc370c8555a 100644 --- a/src/gui/tray/SyncStatus.qml +++ b/src/gui/tray/SyncStatus.qml @@ -102,9 +102,11 @@ RowLayout { } CustomButton { + id: syncNowButton + FontMetrics { id: syncNowFm - font: parent.contentsFont + font: syncNowButton.contentsFont } Layout.preferredWidth: syncNowFm.boundingRect(text).width +