close image tagger
This commit is contained in:
parent
a61c86b433
commit
f37952ae41
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,7 @@ import java.util.logging.Logger
|
|||
|
||||
class MainPage : Application() {
|
||||
private val logger: Logger = Logger.getLogger("MainPage")
|
||||
private var imageTagger: ImageTagsPrediction? = null
|
||||
|
||||
private lateinit var fxmlLoader: FXMLLoader
|
||||
|
||||
|
@ -22,7 +23,7 @@ class MainPage : Application() {
|
|||
fxmlLoader = FXMLLoader(MainPage::class.java.getResource("main-window-view.fxml"))
|
||||
mainStage = stage
|
||||
|
||||
ImageTagsPrediction.getInstance()
|
||||
imageTagger = ImageTagsPrediction.getInstance()
|
||||
setUpApplicationIcon()
|
||||
|
||||
// Load the FXML.
|
||||
|
@ -62,6 +63,7 @@ class MainPage : Application() {
|
|||
logger.info("Stop called.")
|
||||
val controller = fxmlLoader.getController<MainPageController>()
|
||||
controller.shutdown()
|
||||
imageTagger?.close()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue