mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
(Windows) Fixed some directory separator issues in GuiApplicationUpdater
This commit is contained in:
parent
a5a5a814db
commit
8a7d371f3f
|
@ -113,8 +113,13 @@ GuiApplicationUpdater::GuiApplicationUpdater()
|
|||
"CHANGE DIRECTORY", "change download directory", [this]() {
|
||||
if (mDownloading || mHasDownloaded)
|
||||
return;
|
||||
#if defined(_WIN64)
|
||||
std::string currentDownloadDirectory {Utils::String::replace(
|
||||
Utils::FileSystem::getParent(mDownloadPackageFilename), "/", "\\")};
|
||||
#else
|
||||
std::string currentDownloadDirectory {
|
||||
Utils::FileSystem::getParent(mDownloadPackageFilename)};
|
||||
#endif
|
||||
mWindow->pushGui(new GuiTextEditKeyboardPopup(
|
||||
getHelpStyle(), 0.0f, "ENTER DOWNLOAD DIRECTORY", currentDownloadDirectory,
|
||||
[this, currentDownloadDirectory](std::string newDownloadDirectory) {
|
||||
|
@ -137,8 +142,13 @@ GuiApplicationUpdater::GuiApplicationUpdater()
|
|||
Utils::String::trim(newDownloadDirectory));
|
||||
Settings::getInstance()->saveFile();
|
||||
setDownloadPath();
|
||||
#if defined(_WIN64)
|
||||
mProcessStep2->setValue(Utils::String::replace(
|
||||
Utils::FileSystem::getParent(mDownloadPackageFilename), "/", "\\"));
|
||||
#else
|
||||
mProcessStep2->setValue(
|
||||
Utils::FileSystem::getParent(mDownloadPackageFilename));
|
||||
#endif
|
||||
}
|
||||
},
|
||||
false));
|
||||
|
|
Loading…
Reference in a new issue