mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
make ide.scratch.enabled always true and remove it
This commit is contained in:
@@ -78,9 +78,8 @@ public class ScratchFileActions {
|
||||
getTemplatePresentation().setText(myActionText);
|
||||
|
||||
String place = e.getPlace();
|
||||
boolean enabled = e.getProject() != null
|
||||
&& Registry.is("ide.scratch.enabled")
|
||||
&& (ActionPlaces.isMainMenuOrActionSearch(place) || ActionPlaces.isPopupPlace(place));
|
||||
boolean enabled = e.getProject() != null &&
|
||||
(ActionPlaces.isMainMenuOrActionSearch(place) || ActionPlaces.isPopupPlace(place));
|
||||
Presentation presentation = e.getPresentation();
|
||||
presentation.setEnabledAndVisible(enabled);
|
||||
|
||||
@@ -145,7 +144,7 @@ public class ScratchFileActions {
|
||||
|
||||
@Override
|
||||
public void update(@NotNull AnActionEvent e) {
|
||||
boolean enabled = e.getProject() != null && Registry.is("ide.scratch.enabled") && Registry.intValue("ide.scratch.buffers") > 0;
|
||||
boolean enabled = e.getProject() != null && Registry.intValue("ide.scratch.buffers") > 0;
|
||||
e.getPresentation().setEnabledAndVisible(enabled);
|
||||
}
|
||||
|
||||
|
||||
@@ -753,8 +753,6 @@ embed.scene.builder.description=Show SceneBuilder embedded into IntelliJ IDEA fr
|
||||
new.retina.detection=false
|
||||
new.retina.detection.description=New implementation to detect retina devices
|
||||
|
||||
ide.scratch.enabled=true
|
||||
ide.scratch.enabled.description=Disables scratch files and buffers
|
||||
ide.scratch.buffers=5
|
||||
ide.scratch.buffers.description=Number of scratch buffer files
|
||||
ide.scratch.in.project.view=false
|
||||
|
||||
@@ -91,7 +91,6 @@ public class PyCharmInitialConfigurator {
|
||||
});
|
||||
}
|
||||
|
||||
Registry.get("ide.scratch.enabled").setValue(true);
|
||||
Registry.get("ide.ssh.one.time.password").setValue(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user