mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
no smart icons and no parameter info in power save mode
This commit is contained in:
@@ -153,6 +153,7 @@ public class AutoPopupController implements Disposable {
|
||||
public void autoPopupParameterInfo(final Editor editor, @Nullable final PsiElement highlightedMethod){
|
||||
if (ApplicationManager.getApplication().isUnitTestMode()) return;
|
||||
if (DumbService.isDumb(myProject)) return;
|
||||
if (PowerSaveMode.isEnabled()) return;
|
||||
|
||||
ApplicationManager.getApplication().assertIsDispatchThread();
|
||||
final CodeInsightSettings settings = CodeInsightSettings.getInstance();
|
||||
|
||||
@@ -21,6 +21,7 @@ package com.intellij.ui;
|
||||
|
||||
import com.intellij.concurrency.Job;
|
||||
import com.intellij.concurrency.JobLauncher;
|
||||
import com.intellij.ide.PowerSaveMode;
|
||||
import com.intellij.openapi.application.ex.ApplicationManagerEx;
|
||||
import com.intellij.openapi.progress.ProcessCanceledException;
|
||||
import com.intellij.openapi.project.IndexNotReadyException;
|
||||
@@ -82,7 +83,7 @@ public class DeferredIconImpl<T> implements DeferredIcon {
|
||||
myDelegateIcon.paintIcon(c, g, x, y); //SOE protection
|
||||
}
|
||||
|
||||
if (myIsScheduled || isDone()) {
|
||||
if (myIsScheduled || isDone() || PowerSaveMode.isEnabled()) {
|
||||
return;
|
||||
}
|
||||
myIsScheduled = true;
|
||||
|
||||
Reference in New Issue
Block a user