diff --git a/Workspace/client/src/main/java/com/pqt/client/gui/frames/main_frame/MainFrameController.java b/Workspace/client/src/main/java/com/pqt/client/gui/frames/main_frame/MainFrameController.java index c5912dd8..a6bbf597 100644 --- a/Workspace/client/src/main/java/com/pqt/client/gui/frames/main_frame/MainFrameController.java +++ b/Workspace/client/src/main/java/com/pqt/client/gui/frames/main_frame/MainFrameController.java @@ -19,6 +19,7 @@ class MainFrameController implements IMainFrameModelListener { void updateView(){ view.setCurrentAccount(model.getCurrentAccount()); + view.clearModuleView(); if(model.getCurrentAccount()!=null) view.updateModuleButtonLock(model.getCurrentAccount().getPermissionLevel()); else diff --git a/Workspace/client/src/main/java/com/pqt/client/gui/frames/main_frame/MainFrameView.java b/Workspace/client/src/main/java/com/pqt/client/gui/frames/main_frame/MainFrameView.java index ce3fb389..87187e6c 100644 --- a/Workspace/client/src/main/java/com/pqt/client/gui/frames/main_frame/MainFrameView.java +++ b/Workspace/client/src/main/java/com/pqt/client/gui/frames/main_frame/MainFrameView.java @@ -121,4 +121,8 @@ class MainFrameView implements IFXComponent{ void updateModuleButtonLock(AccountLevel level) { currentAccountLevel.setValue(level); } + + public void clearModuleView() { + mainPane.setCenter(null); + } }