From 2db2456d2b4de2154fef8a59fca6d30bf23198a8 Mon Sep 17 00:00:00 2001 From: "Notmoo-PC\\Notmoo" Date: Thu, 25 Jan 2018 16:19:23 +0100 Subject: [PATCH] =?UTF-8?q?[CLIENT]=20#22=20:=20Lors=20de=20la=20connexion?= =?UTF-8?q?/reconnexion,=20la=20vue=20des=20module=20est=20d=C3=A9sormais?= =?UTF-8?q?=20toujours=20vide?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pqt/client/gui/frames/main_frame/MainFrameController.java | 1 + .../com/pqt/client/gui/frames/main_frame/MainFrameView.java | 4 ++++ 2 files changed, 5 insertions(+) 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); + } }