Update src/yuzu/main.cpp

Co-authored-by: Tobias <thm.frey@gmail.com>
This commit is contained in:
DanielSvoboda 2023-10-11 19:29:49 -03:00 committed by GitHub
parent 2c592f9d3b
commit ec1345e1da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2874,7 +2874,7 @@ void GMainWindow::OnGameListCreateShortcut(u64 program_id, const std::string& ga
// Determine target directory for shortcut
if (target == GameListShortcutTarget::Desktop) {
QString desktopPath = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
const auto desktop_path = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
target_directory = desktopPath.toUtf8().toStdString();
QDir dir(QString::fromStdString(target_directory.generic_string()));
if (!dir.exists()) {