use of com.faforever.client.i18n.I18n in project downlords-faf-client by FAForever.
the class ModVaultController method onLoadMoreButtonClicked.
public void onLoadMoreButtonClicked() {
moreButton.setVisible(false);
loadingLabel.setVisible(true);
currentSupplier.get().thenAccept(mods -> {
appendSearchResult(mods, searchResultPane);
enterSearchResultState();
}).exceptionally(e -> {
notificationService.addNotification(new ImmediateNotification(i18n.get("errorTitle"), i18n.get("vault.mod.searchError"), Severity.ERROR, e, Collections.singletonList(new DismissAction(i18n))));
enterShowroomState();
return null;
});
}
Aggregations