mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 08:39:12 +00:00
[CLEANUP] Moved version notification to Core
This commit is contained in:
@@ -44,18 +44,7 @@ public final class Landing {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!Core.inDebugMode() && Core.hasValidation() && !Core.isValid()) {
|
if (!Core.inDebugMode() && Core.hasValidation() && !Core.isValid()) {
|
||||||
UILog.log(TranslationHelper.translate("UPDATES"),
|
Core.downloadNewVersion();
|
||||||
TranslationHelper.translate("DOWNLOAD_UPDATE_PARABOT_AT")
|
|
||||||
+ Configuration.DOWNLOAD_BOT,
|
|
||||||
JOptionPane.INFORMATION_MESSAGE);
|
|
||||||
URI uri = URI.create(Configuration.API_DOWNLOAD_BOT);
|
|
||||||
try {
|
|
||||||
Desktop.getDesktop().browse(uri);
|
|
||||||
} catch (IOException e1) {
|
|
||||||
JOptionPane.showMessageDialog(null, TranslationHelper.translate("CONNECTION_ERROR"),
|
|
||||||
TranslationHelper.translate("ERROR"), JOptionPane.ERROR_MESSAGE);
|
|
||||||
e1.printStackTrace();
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user