Apply suggestions from review

Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
Yihe Li
2025-05-22 23:09:29 +08:00
parent 3745bdb6f2
commit a89caf7362
2 changed files with 10 additions and 7 deletions

View File

@ -149,7 +149,7 @@ void createInstanceShortcut(const Shortcut& shortcut, const QString& filePath)
args.append({ "--launch", shortcut.instance->id() });
args.append(shortcut.extraArgs);
if (!FS::createShortcut(std::move(filePath), appPath, args, shortcut.name, iconPath)) {
if (!FS::createShortcut(filePath, appPath, args, shortcut.name, iconPath)) {
#if not defined(Q_OS_MACOS)
iconFile.remove();
#endif