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

Prevent content player view from closing, close view on app terminate

parent c00b4ed9
No related branches found
No related tags found
No related merge requests found
...@@ -363,6 +363,7 @@ public class MainViewController extends NVC implements IMainViewController, Noti ...@@ -363,6 +363,7 @@ public class MainViewController extends NVC implements IMainViewController, Noti
} }
} }
} }
Platform.exit();
return true; return true;
} }
......
...@@ -28,7 +28,7 @@ class ContentPluginMain extends PlayPadPluginStub with SettingsListener with Pro ...@@ -28,7 +28,7 @@ class ContentPluginMain extends PlayPadPluginStub with SettingsListener with Pro
} }
override def shutdown(): Unit = { override def shutdown(): Unit = {
ContentPluginMain.playerViewController.getStageContainer.ifPresent(container => container.forceClose())
} }
override def getModule: Module = module override def getModule: Module = module
......
package de.tobias.playpad.plugin.content.player package de.tobias.playpad.plugin.content.player
import de.thecodelabs.logger.Logger import de.thecodelabs.logger.Logger
import de.thecodelabs.utils.ui.NVC
import de.thecodelabs.utils.ui.size.IgnoreStageSizing import de.thecodelabs.utils.ui.size.IgnoreStageSizing
import de.thecodelabs.utils.ui.{NVC, NVCStage}
import de.tobias.playpad.plugin.content.settings.{Zone, ZoneConfiguration} import de.tobias.playpad.plugin.content.settings.{Zone, ZoneConfiguration}
import de.tobias.playpad.project.page.PadIndex import de.tobias.playpad.project.page.PadIndex
import javafx.geometry.Insets import javafx.geometry.Insets
...@@ -19,7 +19,9 @@ class ContentPlayerViewController extends NVC { ...@@ -19,7 +19,9 @@ class ContentPlayerViewController extends NVC {
private val mediaStacks: ListBuffer[MediaPlayerStack] = ListBuffer.empty private val mediaStacks: ListBuffer[MediaPlayerStack] = ListBuffer.empty
load("view", "PlayerView") load("view", "PlayerView")
applyViewControllerToStage private val stageContainer: NVCStage = applyViewControllerToStage
stageContainer.addCloseHook(() => false)
Logger.debug("Create Player View Controller") Logger.debug("Create Player View Controller")
override def init(): Unit = { override def init(): Unit = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment