*General*

- IconKey: removed duplicated code

git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@49847 ebf7c1c2-ba36-0410-9fe8-c592906822b4

Former-commit-id: e78dd56d2cee1190122e7bfa932324bd4ac0a4f8
This commit is contained in:
psp 2024-09-24 11:58:42 +00:00
parent 509baa63a4
commit 8a51d37f97

View File

@ -14,12 +14,13 @@ public class IconKey {
while (!file.getName().equals("bin")) {
file = file.getParentFile();
}
final File images;
final String fpath;
if (CrossSystem.isWindows()) {
images = new File(file.getParentFile(), "themes\\themes\\standard\\org\\jdownloader\\images");
fpath = "themes\\themes\\standard\\org\\jdownloader\\images";
} else {
images = new File(file.getParentFile(), "themes/themes/standard/org/jdownloader/images");
fpath = "themes/themes/standard/org/jdownloader/images";
}
final File images = new File(file.getParentFile(), fpath);
Files.walkThroughStructure(new org.appwork.utils.Files.AbstractHandler<RuntimeException>() {
protected File root = null;