mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Prepopulate DeckImportFromClipboardDialog content with string contents of clipboard.
This commit is contained in:
parent
a3206785ab
commit
baeb9d8b00
2 changed files with 18 additions and 1 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