mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-03 16:14:30 +02:00
Merge pull request #3215 from Trial97/fix_custom_instance_icons
Fix curseforge/modrinth instance icons
This commit is contained in:
commit
33981b9870
@ -196,7 +196,8 @@ void IconList::directoryChanged(const QString& path)
|
|||||||
qDebug() << "Adding icon " << addedPath;
|
qDebug() << "Adding icon " << addedPath;
|
||||||
|
|
||||||
QFileInfo addfile(addedPath);
|
QFileInfo addfile(addedPath);
|
||||||
QString key = m_dir.relativeFilePath(addfile.absoluteFilePath());
|
QString relativePath = m_dir.relativeFilePath(addfile.absoluteFilePath());
|
||||||
|
QString key = QFileInfo(relativePath).completeBaseName();
|
||||||
QString name = formatName(m_dir, addfile);
|
QString name = formatName(m_dir, addfile);
|
||||||
|
|
||||||
if (addIcon(key, name, addfile.filePath(), IconType::FileBased)) {
|
if (addIcon(key, name, addfile.filePath(), IconType::FileBased)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user