mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Correctly update preview upon configurable Reset
This commit is contained in:
+1
@@ -80,6 +80,7 @@ public class AppEditorFontConfigurable implements SearchableConfigurable, NoScro
|
||||
AppEditorFontOptionsPanel optionsPanel = getFontPanel().getOptionsPanel();
|
||||
optionsPanel.updateWarning();
|
||||
optionsPanel.updateOptionsList();
|
||||
getFontPanel().updatePreview();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
+9
-1
@@ -20,6 +20,7 @@ import com.intellij.application.options.colors.FontEditorPreview;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.editor.colors.EditorColorsManager;
|
||||
import com.intellij.openapi.editor.colors.EditorColorsScheme;
|
||||
import com.intellij.openapi.editor.colors.EditorFontCache;
|
||||
import com.intellij.openapi.editor.colors.impl.FontPreferencesImpl;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -44,12 +45,19 @@ public class AppEditorFontPanel implements Disposable {
|
||||
new ColorAndFontSettingsListener.Abstract() {
|
||||
@Override
|
||||
public void fontChanged() {
|
||||
myPreview.updateView();
|
||||
updatePreview();
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
public void updatePreview() {
|
||||
if (myPreviewScheme instanceof EditorFontCache) {
|
||||
((EditorFontCache)myPreviewScheme).reset();
|
||||
}
|
||||
myPreview.updateView();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
myPreview.disposeUIResources();
|
||||
|
||||
Reference in New Issue
Block a user