Reputation: 1
I am using gluon mobile to build my app and I want to update the home
window when switching to it with the view.getAppManager.goHome()
but unlike setting a new scene in javafx this does not run the initialize
function in my home controller.
At first I tried fixing it by changing the scene like in javafx but because the of the way that gluon mobile works it discards a lot of the benefits of the API, like the App bar and so on. I was hoping that there is an easy way to run initialize when switching a view. Another fix I tried is to make my update method public and run it through my other view controller but because I cannot make it satatic, I got nullPointerExeptions when making a new HomePresenter.myUpdateToHomeView
. Does Someone know how to work around this?
Upvotes: 0
Views: 36