From 89051c459f714204b2468662b880adf42c5eef38 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 14 Jan 2025 19:42:06 +0100 Subject: [PATCH] (iOS) Fixed an issue where the theme downloader used the incorrect theme directory --- es-app/src/guis/GuiThemeDownloader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/es-app/src/guis/GuiThemeDownloader.cpp b/es-app/src/guis/GuiThemeDownloader.cpp index b31fe0e32..9661ecf0f 100644 --- a/es-app/src/guis/GuiThemeDownloader.cpp +++ b/es-app/src/guis/GuiThemeDownloader.cpp @@ -178,8 +178,10 @@ GuiThemeDownloader::GuiThemeDownloader(std::function updateCallback) std::promise().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(