Skip to content
Snippets Groups Projects
Commit 0c09e8c5 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

#173 - Do not show content player window if no zones are defined

parent d3ef3096
No related branches found
No related tags found
No related merge requests found
......@@ -20,13 +20,17 @@ class ContentPlayerWindowController {
window.Close()
}
import scala.jdk.CollectionConverters._
val zones = configuration.zones.asScala
if (zones.isEmpty) {
return
}
window = new ContentPlayerWindow()
window.SetIcon(PlayPadPlugin.getInstance.getIconData)
window.Show()
import scala.jdk.CollectionConverters._
val zones = configuration.zones.asScala
val minX = zones.map(player => player.x).min.toInt
val minY = zones.map(player => player.y).min.toInt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment