Ver código fonte

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

Fix setting [undefined] to QFont in 'Sync now' button
Claudio Cambra 2 anos atrás
pai
commit
a7eefe886c
1 arquivos alterados com 3 adições e 1 exclusões
  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 +