mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] app state check (IDEA-157865)
This commit is contained in:
+2
-2
@@ -589,8 +589,8 @@ object UpdateChecker {
|
||||
@JvmStatic
|
||||
fun checkForUpdate(event: IdeaLoggingEvent) {
|
||||
if (!ourHasFailedPlugins) {
|
||||
val settings = UpdateSettings.getInstance()
|
||||
if (settings != null && settings.isCheckNeeded) {
|
||||
val app = ApplicationManager.getApplication()
|
||||
if (!app.isDisposed && !app.isDisposeInProgress && UpdateSettings.getInstance().isCheckNeeded) {
|
||||
val pluginDescriptor = PluginManager.getPlugin(IdeErrorsDialog.findPluginId(event.throwable))
|
||||
if (pluginDescriptor != null && !pluginDescriptor.isBundled) {
|
||||
ourHasFailedPlugins = true
|
||||
|
||||
Reference in New Issue
Block a user