mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
check for dumbness in image preview
This commit is contained in:
@@ -2,6 +2,7 @@ package com.intellij.html.preview;
|
||||
|
||||
import com.intellij.codeInsight.hint.HintManagerImpl;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.project.DumbService;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
@@ -195,6 +196,10 @@ public class ImageOrColorPreviewManager implements Disposable, EditorMouseMotion
|
||||
return;
|
||||
}
|
||||
|
||||
if (DumbService.getInstance(element.getProject()).isDumb()) {
|
||||
return;
|
||||
}
|
||||
|
||||
final LightweightHint hint = ImageOrColorPreviewManager.getHint(element);
|
||||
if (hint != null) {
|
||||
final Editor editor = myManager.getEditor();
|
||||
|
||||
Reference in New Issue
Block a user