Skip to content

Commit aa473de

Browse files
authored
Merge pull request #344 from magento/342-fixed-magento-path-suggestion
Fixed disabling plugin on a startup when Magento not in the root
2 parents 52f2f43 + 5d46f5c commit aa473de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/magento/idea/magento2plugin/project/startup/CheckIfMagentoPathIsValidActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class CheckIfMagentoPathIsValidActivity implements StartupActivity {
1818
public void runActivity(final @NotNull Project project) {
1919
final Settings settings = Settings.getInstance(project);
2020
final String path = settings.magentoPath;
21-
if (settings.pluginEnabled || path == null || path.isEmpty()) {
21+
if (settings.pluginEnabled && (path == null || path.isEmpty())) {
2222
if (MagentoBasePathUtil.isMagentoFolderValid(project.getBasePath())) {
2323
settings.setMagentoPath(project.getBasePath());
2424
return;

0 commit comments

Comments
 (0)