Resolve the client's data directories in one place
Stores read their paths from AppDirs instead of user.home, so a platform without a home directory can point them elsewhere at startup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,7 @@ import com.github.weisj.jsvg.SVGDocument;
|
||||
import com.github.weisj.jsvg.parser.LoaderContext;
|
||||
import com.github.weisj.jsvg.parser.SVGLoader;
|
||||
import com.github.weisj.jsvg.view.ViewBox;
|
||||
import com.ts3client.config.AppDirs;
|
||||
import com.ts3client.config.Settings;
|
||||
import com.ts3client.gfx.IconPack;
|
||||
import com.ts3client.gfx.IconPacks;
|
||||
@@ -70,7 +71,7 @@ public final class IconTheme {
|
||||
|
||||
/** Re-scans the pack folders and activates the one the settings name. */
|
||||
public void reload(Settings settings) {
|
||||
packs = IconPacks.findAll(new File(Settings.configDir(), "gfx"), settings.iconPackDir);
|
||||
packs = IconPacks.findAll(new File(AppDirs.profile(), "gfx"), settings.iconPackDir);
|
||||
fallback = IconPacks.fallback(packs);
|
||||
setPack(IconPacks.select(packs, settings.iconPack));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user