Update main.cpp

desktopPath > desktop_Path
applicationsPath > applications_Path
This commit is contained in:
DanielSvoboda 2023-10-11 19:58:54 -03:00 committed by GitHub
commit aaeb587f1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2872,17 +2872,17 @@ void GMainWindow::OnGameListCreateShortcut(u64 program_id, const std::string& ga
std::filesystem::path target_directory{}; std::filesystem::path target_directory{};
switch (target) { switch (target) {
case GameListShortcutTarget::Desktop: { case GameListShortcutTarget::Desktop: {
const QString desktopPath = const QString desktop_Path =
QStandardPaths::writableLocation(QStandardPaths::DesktopLocation); QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
target_directory = desktopPath.toUtf8().toStdString(); target_directory = desktop_Path.toUtf8().toStdString();
break; break;
} }
case GameListShortcutTarget::Applications: { case GameListShortcutTarget::Applications: {
const QString applicationsPath = const QString applications_Path =
QStandardPaths::writableLocation(QStandardPaths::ApplicationsLocation); QStandardPaths::writableLocation(QStandardPaths::ApplicationsLocation);
target_directory = applicationsPath.toUtf8().toStdString(); target_directory = applications_Path.toUtf8().toStdString();
break; break;
} }
default: default: