forked from External/mage
Some minor changes.
This commit is contained in:
parent
d1fd69f685
commit
ea439505ce
2 changed files with 13 additions and 17 deletions
|
|
@ -30,8 +30,8 @@ public final class CardImageUtils {
|
|||
String filePath = getTokenImagePath(card);
|
||||
if (pathCache.containsKey(card)) {
|
||||
if (filePath.equals(pathCache.get(card))) {
|
||||
return pathCache.get(card);
|
||||
}
|
||||
return pathCache.get(card);
|
||||
}
|
||||
}
|
||||
TFile file = new TFile(filePath);
|
||||
|
||||
|
|
@ -192,8 +192,8 @@ public final class CardImageUtils {
|
|||
}
|
||||
|
||||
public static String generateTokenDescriptorImagePath(CardDownloadData card) {
|
||||
String useDefault = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_CARD_IMAGES_USE_DEFAULT, "true");
|
||||
String imagesPath = Objects.equals(useDefault, "true") ? null : PreferencesDialog.getCachedValue(PreferencesDialog.KEY_CARD_IMAGES_PATH, null);
|
||||
// String useDefault = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_CARD_IMAGES_USE_DEFAULT, "true");
|
||||
// String imagesPath = Objects.equals(useDefault, "true") ? null : PreferencesDialog.getCachedValue(PreferencesDialog.KEY_CARD_IMAGES_PATH, null);
|
||||
|
||||
String straightImageFile = getTokenDescriptorImagePath(card);
|
||||
TFile file = new TFile(straightImageFile);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue