hiscore panel: add loading label when searching
This commit is contained in:
@@ -423,6 +423,7 @@ public class HiscorePanel extends PluginPanel
|
|||||||
private void lookup()
|
private void lookup()
|
||||||
{
|
{
|
||||||
String lookup = input.getText();
|
String lookup = input.getText();
|
||||||
|
details.setText("Loading...");
|
||||||
|
|
||||||
lookup = sanitize(lookup);
|
lookup = sanitize(lookup);
|
||||||
|
|
||||||
@@ -446,6 +447,7 @@ public class HiscorePanel extends PluginPanel
|
|||||||
catch (IOException ex)
|
catch (IOException ex)
|
||||||
{
|
{
|
||||||
log.warn("Error fetching Hiscore data " + ex.getMessage());
|
log.warn("Error fetching Hiscore data " + ex.getMessage());
|
||||||
|
details.setText("Error fetching Hiscore data");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user