Skip to content

Commit 80b8d85

Browse files
committed
Fix double window opened bug
1 parent 8c658a7 commit 80b8d85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/ru/nucodelabs/gem/app/GemApplication.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class GemApplication : GuiceApplication(AppModule()) {
8383
val expFiles = params.filter { it.endsWith(".EXP", ignoreCase = true) }
8484
val jsonFiles = params.filter { it.endsWith(".json", ignoreCase = true) }
8585

86-
loadMainViewWithEXPFiles(expFiles.map { File(it) })
86+
if (expFiles.isNotEmpty()) loadMainViewWithEXPFiles(expFiles.map { File(it) })
8787
jsonFiles.forEach { jsonFile -> loadMainViewWithJsonFile(File(jsonFile)) }
8888

8989
return expFiles.isNotEmpty() or jsonFiles.isNotEmpty()

0 commit comments

Comments
 (0)