mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
Merge pull request #5420 from hitch17/load-deck-content-from-clipboard
Prepopulate DeckImportFromClipboardDialog content with string content…
This commit is contained in:
commit
6fa014d1a9
3 changed files with 40 additions and 5 deletions
|
|
@ -39,7 +39,9 @@ public final class DeckImporterUtil {
|
|||
}
|
||||
|
||||
public static DeckImporter getDeckImporter(String file) {
|
||||
if (file.toLowerCase(Locale.ENGLISH).endsWith("dec")) {
|
||||
if (file == null) {
|
||||
return null;
|
||||
} if (file.toLowerCase(Locale.ENGLISH).endsWith("dec")) {
|
||||
return new DecDeckImporter();
|
||||
} else if (file.toLowerCase(Locale.ENGLISH).endsWith("mwdeck")) {
|
||||
return new MWSDeckImporter();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue