We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e6d66c commit aed581aCopy full SHA for aed581a
src/main/java/com/dark/zewo2/gui/screens/SessionIDScreen.java
@@ -39,11 +39,13 @@ public void initWidgets() {
39
// Add
40
t.add(theme.button("Done")).minWidth(220).expandX().widget().action = () -> {
41
if (ID.get().isEmpty() || USER.get().isEmpty()) return;
42
- if (UUID.get().isEmpty()){
+ if (ID.get().contains(":")){
43
ID.set(ID.get().replaceAll("token:", ""));
44
String tokenPart = ID.get().split(":")[0];
45
String uuidPart = ID.get().split(":")[1];
46
setSession(USER.get(), uuidPart, tokenPart);
47
+ } else if (UUID.get().isEmpty()) {
48
+ t.add(theme.label("Supply a UUID"));
49
} else {
50
setSession(USER.get(), UUID.get(), ID.get());
51
}
0 commit comments