forked from Github/PrismLauncher
Fix curseforge/modrinth instance icons
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
28a471777a
commit
f4d93a08ba
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue