提交 5022dece 编写于 作者: S Serge Rider

#1847 Disable version.xml reading if auto-update was disabled.


Former-commit-id: b56d145b
上级 0cf8c560
......@@ -75,6 +75,9 @@ public class DBeaverVersionChecker extends AbstractJob {
}
}
}
if (!showAlways && !showUpdateDialog) {
return Status.OK_STATUS;
}
try {
DBeaverCore.getGlobalPreferenceStore().setValue(DBeaverPreferences.UI_UPDATE_CHECK_TIME, System.currentTimeMillis());
final String updateURL = Platform.getProduct().getProperty("versionUpdateURL");
......@@ -84,9 +87,7 @@ public class DBeaverVersionChecker extends AbstractJob {
VersionDescriptor versionDescriptor = new VersionDescriptor(updateURL);
if (versionDescriptor.getProgramVersion().compareTo(GeneralUtils.getProductVersion()) > 0) {
if (showAlways || showUpdateDialog) {
showUpdaterDialog(versionDescriptor);
}
showUpdaterDialog(versionDescriptor);
} else if (showAlways) {
showUpdaterDialog(null);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册