(iOS) Fixed an issue where the theme downloader used the incorrect theme directory

This commit is contained in:
Leon Styhre 2025-01-14 19:42:06 +01:00
parent d6546e2164
commit 89051c459f

View file

@ -178,8 +178,10 @@ GuiThemeDownloader::GuiThemeDownloader(std::function<void()> updateCallback)
std::promise<bool>().swap(mPromise);
mFuture = mPromise.get_future();
#if defined(__ANDROID__) || defined(__IOS__)
#if defined(__ANDROID__)
mThemeDirectory = Utils::FileSystem::getInternalAppDataDirectory() + "/themes";
#elif defined(__IOS__)
mThemeDirectory = Utils::FileSystem::getAppDataDirectory() + "/themes";
#else
const std::string defaultUserThemeDir {Utils::FileSystem::getAppDataDirectory() + "/themes"};
const std::string userThemeDirSetting {Utils::FileSystem::expandHomePath(