[CLIENT] #22 : Lors de la connexion/reconnexion, la vue des module est désormais toujours vide

This commit is contained in:
Notmoo-PC\Notmoo 2018-01-25 16:19:23 +01:00
parent 85972092f8
commit 2db2456d2b
2 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,7 @@ class MainFrameController implements IMainFrameModelListener {
void updateView(){ void updateView(){
view.setCurrentAccount(model.getCurrentAccount()); view.setCurrentAccount(model.getCurrentAccount());
view.clearModuleView();
if(model.getCurrentAccount()!=null) if(model.getCurrentAccount()!=null)
view.updateModuleButtonLock(model.getCurrentAccount().getPermissionLevel()); view.updateModuleButtonLock(model.getCurrentAccount().getPermissionLevel());
else else

View File

@ -121,4 +121,8 @@ class MainFrameView implements IFXComponent{
void updateModuleButtonLock(AccountLevel level) { void updateModuleButtonLock(AccountLevel level) {
currentAccountLevel.setValue(level); currentAccountLevel.setValue(level);
} }
public void clearModuleView() {
mainPane.setCenter(null);
}
} }