mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
add Preload Custom Drafts
Should fix longer startup time on mobile version instead of forcing to load custom drafts file at startup.
This commit is contained in:
@@ -283,7 +283,8 @@ public class Forge implements ApplicationListener {
|
||||
|
||||
private void preloadBoosterDrafts() {
|
||||
//preloading of custom drafts
|
||||
BoosterDraft.initializeCustomDrafts();
|
||||
if (getForgePreferences().getPrefBoolean(FPref.PRELOAD_CUSTOM_DRAFTS))
|
||||
BoosterDraft.initializeCustomDrafts();
|
||||
}
|
||||
|
||||
public static void openHomeScreen(int index, FScreen lastMatch) {
|
||||
|
||||
@@ -393,6 +393,10 @@ public class SettingsPage extends TabPage<SettingsScreen> {
|
||||
Forge.getLocalizer().getMessage("cbLoadArchivedFormats"),
|
||||
Forge.getLocalizer().getMessage("nlLoadArchivedFormats")),
|
||||
3);
|
||||
lstSettings.addItem(new BooleanSetting(FPref.PRELOAD_CUSTOM_DRAFTS,
|
||||
Forge.getLocalizer().getMessage("cbPreloadCustomDrafts"),
|
||||
Forge.getLocalizer().getMessage("nlPreloadCustomDrafts")),
|
||||
3);
|
||||
lstSettings.addItem(new BooleanSetting(FPref.UI_LOAD_UNKNOWN_CARDS,
|
||||
Forge.getLocalizer().getMessage("lblEnableUnknownCards"),
|
||||
Forge.getLocalizer().getMessage("nlEnableUnknownCards")) {
|
||||
|
||||
Reference in New Issue
Block a user