This commit is contained in:
SeekDaSky 2017-12-19 17:09:52 +01:00
parent 640dd5d8a7
commit 9b7840f277
1 changed files with 6 additions and 8 deletions

View File

@ -95,14 +95,6 @@ public class RootLayout extends Application implements EventObserver {
/* (4) #scroll_container*/
new ContainerScrollStyleSheet( this.root_scene.lookup("#scroll_container") );
NewsListModel.getInstance().addObserver("MainClass", this);
NewsListModel.getInstance().setCategory(Category.all);
NewsListModel.getInstance().setSortType(SortTypes.relevancy);
TraductionModel.getInstance().addObserver("MainClass", this);
VBox subMenuContainer = (VBox) this.root_layout.lookup("#submenu");
for(Node n : subMenuContainer.getChildren()) {
@ -133,6 +125,12 @@ public class RootLayout extends Application implements EventObserver {
this.handleMainLayoutChange("magazines");
NewsListModel.getInstance().addObserver("MainClass", this);
NewsListModel.getInstance().setCategory(Category.all);
NewsListModel.getInstance().setSortType(SortTypes.relevancy);
TraductionModel.getInstance().addObserver("MainClass", this);
}