Fixed not terminating the process when closed window

This commit is contained in:
huangyuhui
2018-03-03 22:56:42 +08:00
parent c6ab7878e7
commit 5b5a58a867
11 changed files with 92 additions and 11 deletions

View File

@@ -17,6 +17,8 @@
*/
package org.jackhuang.hmcl.auth;
import org.jackhuang.hmcl.util.ToStringBuilder;
import java.util.Map;
import java.util.UUID;
@@ -64,4 +66,13 @@ public abstract class Account {
public abstract Map<Object, Object> toStorage();
public abstract void clearCache();
@Override
public String toString() {
return new ToStringBuilder(this)
.append("username", getUsername())
.append("character", getCharacter())
.append("uuid", getUUID())
.toString();
}
}