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

Cleanup code

parent 1c5593a9
No related branches found
No related tags found
No related merge requests found
......@@ -49,9 +49,7 @@ class ContentPluginMain extends PlayPadPluginStub with SettingsListener with Pro
override def reloadSettings(oldProfile: Profile, currentProfile: Profile): Unit = {
val zoneConfiguration = currentProfile.getCustomSettings(ContentPluginMain.zoneConfigurationKey).asInstanceOf[ZoneConfiguration]
Platform.runLater(() => {
ContentPluginMain.playerViewController.configurePlayers(zoneConfiguration)
})
Platform.runLater(() => ContentPluginMain.playerViewController.configurePlayers(zoneConfiguration))
}
}
......
......@@ -43,11 +43,7 @@ class ContentPlayerPadPreview(pad: Pad, parent: Pane) extends VBox with IPadCont
pad.getContent match {
case content: ContentPlayerPadContent =>
subTitleLabel.textProperty().bind(Bindings.createStringBinding(() => {
if (content.currentPlayingMediaIndex < 0) {
""
} else {
PathUtils.getFilenameWithoutExtension(pad.getPaths.get(content.currentPlayingMediaIndex).getPath.getFileName)
}
if (content.currentPlayingMediaIndex < 0) "" else PathUtils.getFilenameWithoutExtension(pad.getPaths.get(content.currentPlayingMediaIndex).getPath.getFileName)
}, content.currentPlayingMediaIndexProperty()))
case _ =>
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment