|
|
@@ -232,6 +232,11 @@ bool ModStateController::doInstallMod(QString modname, QString archivePath)
|
|
|
auto rc = QFile::rename(destDir + modDirName, destDir + modname);
|
|
|
if (rc)
|
|
|
extractedDir.setPath(destDir + modname);
|
|
|
+
|
|
|
+ // Remove .github folder from installed mod
|
|
|
+ QDir githubDir(extractedDir.filePath(".github"));
|
|
|
+ if (githubDir.exists())
|
|
|
+ githubDir.removeRecursively();
|
|
|
|
|
|
//there are possible excessive files - remove them
|
|
|
QString upperLevel = modDirName.section('/', 0, 0);
|