mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
GUI: fixed that server's lobby do not remember divider position after app restart (tables, matches and chat sizes)
This commit is contained in:
parent
f78177a540
commit
f0c38cdb87
7 changed files with 36 additions and 32 deletions
|
|
@ -14,7 +14,7 @@ public interface MageClient extends CallbackClient {
|
|||
|
||||
void connected(String message);
|
||||
|
||||
void disconnected(boolean askToReconnect);
|
||||
void disconnected(boolean askToReconnect, boolean keepMySessionActive);
|
||||
|
||||
void showMessage(String message);
|
||||
|
||||
|
|
|
|||
|
|
@ -552,7 +552,7 @@ public class SessionImpl implements Session {
|
|||
if (askForReconnect) {
|
||||
client.showError("Network error. Can't connect to " + connection.getHost());
|
||||
}
|
||||
client.disconnected(askForReconnect); // MageFrame with check to reconnect
|
||||
client.disconnected(askForReconnect, keepMySessionActive); // MageFrame with check to reconnect
|
||||
pingTime.clear();
|
||||
}
|
||||
|
||||
|
|
@ -568,7 +568,7 @@ public class SessionImpl implements Session {
|
|||
|
||||
@Override
|
||||
public synchronized void connectReconnect(Throwable throwable) {
|
||||
client.disconnected(true);
|
||||
client.disconnected(true, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue