From 38b6dfa2d2cfa99c280b31dd6b3b0244bd9ec648 Mon Sep 17 00:00:00 2001 From: Mauro Mura Date: Mon, 3 Jun 2024 16:31:28 +0200 Subject: [PATCH] Update main.cpp --- src/gui/main.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/gui/main.cpp b/src/gui/main.cpp index a5ee49bcadf42..6742a8b1a0e5e 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -58,17 +58,6 @@ int main(int argc, char **argv) #ifdef Q_OS_WIN SetDllDirectory(L""); #endif - bool resourceLoaded = false; - const QString currentPath = QDir::currentPath(); - if(Utility::isMac()) - { - resourceLoaded = QResource::registerResource(QDir::toNativeSeparators("/Applications/MagentaCLOUD.app/Contents/Resources/nmctheme_v1.rcc")); - } - else if(Utility::isWindows() || !resourceLoaded) - { - resourceLoaded = QResource::registerResource(QDir::toNativeSeparators(currentPath + "/nmctheme_v1.rcc")); - } - Q_INIT_RESOURCE(resources); Q_INIT_RESOURCE(theme);