mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
* Client - Don't load games again if not neccessary if "Games" menu item is clicked.
This commit is contained in:
parent
529b27c664
commit
02ca83324c
1 changed files with 12 additions and 6 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue