FIxed double firing of chat controller

This commit is contained in:
Rohan Sircar 2020-05-27 15:02:59 +05:30
parent 748693a3a4
commit 77c5ffbb15
2 changed files with 7 additions and 2 deletions

View File

@ -95,7 +95,8 @@ class ApplicationController extends DefaultWindowController {
}
def showChatPane(): Unit = onFX {
replaceSceneContent(mainViewController, true)
replaceSceneContent(mainViewController)
mainViewController.showChatController()
}
}

View File

@ -46,8 +46,12 @@ class MainViewController extends ViewController with LazyLogging {
// ContentManager(navigationPane, this, navigationController)
// statusBarManager = ContentManager(statusPane, this, statusBarController)
// workspaceManager = ContentManager(workspacePane, this, workspaceController)
mainManager = ContentManager(mainPane, this, chatController)
mainManager = ContentManager(mainPane, this)
chatController.chatMainPane.hgrow = Priority.ALWAYS
}
def showChatController(): Unit = {
mainManager.updatePaneContent(chatController)
}
}