mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Minor Performance
- Clear image cache if necessary (prevent clearing if the downloaded data is not image) - Cache missing cards (prevent finding missing cards unless the user has fetched/downloads an image) - Clear preselected options for New Gauntlet Match (easier to filter decks for Gauntlet)
This commit is contained in:
@@ -288,6 +288,7 @@ public class GuiMobile implements IGuiBase {
|
||||
@Override
|
||||
public void clearImageCache() {
|
||||
ImageCache.clear();
|
||||
ImageKeys.clearMissingCards();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -113,6 +113,7 @@ public class ImageCache {
|
||||
|
||||
public static void clear() {
|
||||
missingIconKeys.clear();
|
||||
ImageKeys.clearMissingCards();
|
||||
}
|
||||
|
||||
public static void disposeTexture(){
|
||||
|
||||
@@ -113,7 +113,7 @@ public class NewGauntletScreen extends LaunchScreen {
|
||||
});
|
||||
}
|
||||
});
|
||||
chooser.show(null, true);
|
||||
chooser.show(null, false); /*setting selectMax to true will select all available option*/
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user