Do not include theme header in account header
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 23 Aug 2023 01:26:31 +0000 (09:26 +0800)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Thu, 24 Aug 2023 00:34:41 +0000 (08:34 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/libsync/account.cpp
src/libsync/account.h

index da3a80a29ccd7b35c4e007b56b0583c195e8bec0..872acee50feb4f3a64a5ab590afcc0f382e9681a 100644 (file)
@@ -22,6 +22,7 @@
 #include "creds/abstractcredentials.h"
 #include "networkjobs.h"
 #include "pushnotifications.h"
+#include "theme.h"
 #include "version.h"
 
 #include "deletejob.h"
@@ -70,6 +71,7 @@ const char app_password[] = "_app-password";
 Account::Account(QObject *parent)
     : QObject(parent)
     , _capabilities(QVariantMap())
+    , _serverColor(Theme::defaultColor())
 {
     qRegisterMetaType<AccountPtr>("AccountPtr");
     qRegisterMetaType<Account *>("Account*");
index 1c44b71443268be497c9e2db73fcfd454762a926..4cad863cf971682be42a9d8f03e3f06dba304378 100644 (file)
@@ -35,7 +35,7 @@
 #include "clientsideencryption.h"
 #include "common/utility.h"
 #include "syncfileitem.h"
-#include "theme.h"
+
 #include <memory>
 
 class QSettings;
@@ -409,7 +409,7 @@ private:
     QSslConfiguration _sslConfiguration;
     Capabilities _capabilities;
     QString _serverVersion;
-    QColor _serverColor = Theme::defaultColor();
+    QColor _serverColor;
     QColor _serverTextColor = QColorConstants::White;
     bool _skipE2eeMetadataChecksumValidation = false;
     QScopedPointer<AbstractSslErrorHandler> _sslErrorHandler;