* Client - Don't load games again if not neccessary if "Games" menu item is clicked.

This commit is contained in:
LevelX2 2014-09-26 13:44:57 +02:00
parent 529b27c664
commit 02ca83324c

View file

@ -976,13 +976,19 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
}
public void showGames(boolean setActive) {
MagePane topPane = getTopMost(tablesPane);
this.tablesPane.setVisible(true);
this.tablesPane.showTables();
setActive(tablesPane);
if (!setActive && topPane != null) {
setActive(topPane);
MagePane topPanebefore = getTopMost(tablesPane);
if (!tablesPane.isVisible()) {
this.tablesPane.setVisible(true);
this.tablesPane.showTables();
}
if (setActive) {
setActive(tablesPane);
} else {
// if other panel was already shown, mamke sure it's topmost again
if (topPanebefore != null) {
setActive(topPanebefore);
}
}
}
public void hideGames() {