mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Temporarily disabling downloader until an OPT-IN checkbox is added to preferences, so users with bad internet connections aren't punished
This commit is contained in:
@@ -25,10 +25,15 @@ public class ImageFetcher {
|
||||
private static final ExecutorService threadPool = Executors.newCachedThreadPool();
|
||||
private static HashMap<String, HashSet<Callback>> currentFetches = new HashMap<>();
|
||||
private static HashMap<String, String> tokenImages;
|
||||
// Temporarily disabling downloader until a defaulted OFF checkbox is added to preferences
|
||||
private static boolean FETCH = false;
|
||||
|
||||
public static void fetchImage(final CardView card, final String imageKey, final Callback callback) {
|
||||
FThreads.assertExecutedByEdt(true);
|
||||
|
||||
if (!FETCH)
|
||||
return;
|
||||
|
||||
// Fake card (like the ante prompt) trying to be "fetched"
|
||||
if (imageKey.length() < 2)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user