mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-08-02 03:20:58 -04:00
fix existing instance shortcuts not being detected
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
(cherry picked from commit ca3b86153d)
This commit is contained in:
committed by
github-actions[bot]
parent
8b57a5f7d4
commit
d406e005c9
@@ -446,7 +446,7 @@ QList<ShortcutData> BaseInstance::shortcuts() const
|
||||
|
||||
QString shortcutName = dict["name"].toString();
|
||||
QString filePath = dict["filePath"].toString();
|
||||
if (!QDir(filePath).exists()) {
|
||||
if (!QFileInfo::exists(filePath)) {
|
||||
qWarning() << "Shortcut" << shortcutName << "for instance" << name() << "have non-existent path" << filePath;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user