make ide.scratch.enabled always true and remove it

This commit is contained in:
Gregory.Shrago
2017-10-17 20:36:59 +03:00
parent 33bce50aab
commit 067ecf37ed
3 changed files with 3 additions and 7 deletions
@@ -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);
}