summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/view
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/view')
-rw-r--r--src/jrummikub/view/IView.java2
-rw-r--r--src/jrummikub/view/impl/View.java9
2 files changed, 7 insertions, 4 deletions
diff --git a/src/jrummikub/view/IView.java b/src/jrummikub/view/IView.java
index 8643781..c0dc675 100644
--- a/src/jrummikub/view/IView.java
+++ b/src/jrummikub/view/IView.java
@@ -221,6 +221,8 @@ public interface IView {
*/
public void showLoginPanel(boolean show);
+ public void resetLoginPanel();
+
/**
* Enable/disable pause mode
*
diff --git a/src/jrummikub/view/impl/View.java b/src/jrummikub/view/impl/View.java
index 9a0bf9e..0f279ab 100644
--- a/src/jrummikub/view/impl/View.java
+++ b/src/jrummikub/view/impl/View.java
@@ -497,14 +497,15 @@ public class View extends JFrame implements IView {
@Override
public void showLoginPanel(boolean show) {
- if (show) {
- loginPanel.resetLoginPanel();
- }
-
loginPanel.setVisible(show);
}
@Override
+ public void resetLoginPanel() {
+ loginPanel.resetLoginPanel();
+ }
+
+ @Override
public void showGameListPanel(boolean show) {
if (show) {
gameListPanel.reset();