removal of Lobby now runs on Platform.runLater(). Untested.
This commit is contained in:
parent
62992ae84c
commit
651a07e32e
@ -19,7 +19,7 @@ public class BudaLogConfig {
|
|||||||
LoggerContext ctx = (LoggerContext) LogManager.getContext(false);
|
LoggerContext ctx = (LoggerContext) LogManager.getContext(false);
|
||||||
Configuration config = ctx.getConfiguration();
|
Configuration config = ctx.getConfiguration();
|
||||||
LoggerConfig loggerConfig = config.getLoggerConfig(LogManager.ROOT_LOGGER_NAME);
|
LoggerConfig loggerConfig = config.getLoggerConfig(LogManager.ROOT_LOGGER_NAME);
|
||||||
loggerConfig.setLevel(Level.INFO); // change level here
|
loggerConfig.setLevel(Level.DEBUG); // change level here
|
||||||
ctx.updateLoggers(); // This causes all Loggers to refetch information from their LoggerConfig.
|
ctx.updateLoggers(); // This causes all Loggers to refetch information from their LoggerConfig.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -599,16 +599,27 @@ public class LoungeSceneViewController implements Initializable {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should remove the lobby from the lobby list view
|
||||||
|
*
|
||||||
|
* @param data
|
||||||
|
*/
|
||||||
public void removeLobbyFromView(String data) {
|
public void removeLobbyFromView(String data) {
|
||||||
Iterator<LobbyListItem> itr = lobbies.iterator();
|
Iterator<LobbyListItem> itr = lobbies.iterator();
|
||||||
while (itr.hasNext()) {
|
while (itr.hasNext()) {
|
||||||
LobbyListItem item = itr.next();
|
LobbyListItem item = itr.next();
|
||||||
if (item.getLobbyID().equals(data)) {
|
if (item.getLobbyID().equals(data)) {
|
||||||
|
Platform.runLater(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
itr.remove();
|
itr.remove();
|
||||||
LOGGER.debug(
|
LOGGER.debug(
|
||||||
"Made it into removeLobbyFromView if clause for lobby w/ ID: " + item.getLobbyID()
|
"Made it into removeLobbyFromView if clause for lobby w/ ID: " + item.getLobbyID()
|
||||||
+ " for data passed: " + data);
|
+ " for data passed: " + data);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user