(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); std::promise<bool>().swap(mPromise);
mFuture = mPromise.get_future(); mFuture = mPromise.get_future();
#if defined(__ANDROID__) || defined(__IOS__) #if defined(__ANDROID__)
mThemeDirectory = Utils::FileSystem::getInternalAppDataDirectory() + "/themes"; mThemeDirectory = Utils::FileSystem::getInternalAppDataDirectory() + "/themes";
#elif defined(__IOS__)
mThemeDirectory = Utils::FileSystem::getAppDataDirectory() + "/themes";
#else #else
const std::string defaultUserThemeDir {Utils::FileSystem::getAppDataDirectory() + "/themes"}; const std::string defaultUserThemeDir {Utils::FileSystem::getAppDataDirectory() + "/themes"};
const std::string userThemeDirSetting {Utils::FileSystem::expandHomePath( const std::string userThemeDirSetting {Utils::FileSystem::expandHomePath(