Fix the branding detection for monochrome icons on Mac
authorKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 20 Jan 2021 14:16:59 +0000 (15:16 +0100)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Thu, 21 Jan 2021 06:39:11 +0000 (06:39 +0000)
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/libsync/configfile.cpp

index bc4ab69b4887fa51438644e1de43b1c760f2c29e..571c76ccc233a23d4caf05afb0dddc7c852765e0 100644 (file)
@@ -899,7 +899,7 @@ bool ConfigFile::monoIcons() const
     bool monoDefault = false; // On Mac we want bw by default
 #ifdef Q_OS_MAC
     // OEM themes are not obliged to ship mono icons
-    monoDefault = (0 == (strcmp("ownCloud", APPLICATION_NAME)));
+    monoDefault = QByteArrayLiteral("Nextcloud") == QByteArrayLiteral(APPLICATION_NAME);
 #endif
     return settings.value(QLatin1String(monoIconsC), monoDefault).toBool();
 }