Added: #2467 Show ImportAssets name/characterId in the title when there is only single one item

This commit is contained in:
Jindra Petřík
2025-06-09 08:56:33 +02:00
parent feb4102b85
commit 1211b01e25
3 changed files with 24 additions and 0 deletions

View File

@@ -84,6 +84,7 @@ public class ImportAssets2Tag extends Tag implements ImportTag {
super(swf, ID, NAME, null);
url = "";
tags = new ArrayList<>();
names = new ArrayList<>();
}
/**
@@ -154,4 +155,14 @@ public class ImportAssets2Tag extends Tag implements ImportTag {
public String getUrl() {
return url;
}
@Override
public Map<String, String> getNameProperties() {
Map<String, String> ret = super.getNameProperties();
if (names.size() == 1) {
ret.put("chid", "" + tags.get(0));
ret.put("im", "" + names.get(0));
}
return ret;
}
}

View File

@@ -67,6 +67,7 @@ public class ImportAssetsTag extends Tag implements ImportTag {
super(swf, ID, NAME, null);
url = "";
tags = new ArrayList<>();
names = new ArrayList<>();
}
@Override
@@ -130,4 +131,14 @@ public class ImportAssetsTag extends Tag implements ImportTag {
public String getUrl() {
return url;
}
@Override
public Map<String, String> getNameProperties() {
Map<String, String> ret = super.getNameProperties();
if (names.size() == 1) {
ret.put("chid", "" + tags.get(0));
ret.put("im", "" + names.get(0));
}
return ret;
}
}