Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
memurats authored Jun 3, 2024
1 parent ce7ac68 commit 38b6dfa
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/gui/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 38b6dfa

Please sign in to comment.