소스 검색

Merge pull request #5628 from nextcloud/bugfix/sync-now-button-error

Fix setting [undefined] to QFont in 'Sync now' button
Claudio Cambra 2 년 전
부모
커밋
a7eefe886c
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/gui/tray/SyncStatus.qml

+ 3 - 1
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 +