Fix media directory path

This commit is contained in:
2025-11-19 21:07:47 -07:00
parent ba3ff29405
commit 1934dbe83a
576 changed files with 3008 additions and 2 deletions

View File

@@ -18,7 +18,10 @@ MusicSelector::MusicSelector(QWidget* parent)
setLayout(flow);
// Set Media Folder
QString projectRoot = QDir(QFileInfo(__FILE__).absolutePath()).absoluteFilePath("../../../");
QString projectRoot = QDir(QCoreApplication::applicationDirPath())
.absoluteFilePath("../../../../.."); // Escape the .app bundle
// Now manually append your real resources dir:
QString mediaFolder = projectRoot + "/resources/media";
// Debug Media Path