Skip to content

Commit b0862b5

Browse files
dkvashninbaylenaorobei
authored andcommitted
Fixed User experience - if you've enabled plugin you smash reindex.
(cherry picked from commit e7b21a6)
1 parent fd6e7b0 commit b0862b5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/com/magento/idea/magento2plugin/SettingsForm.form

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<grid id="27dc6" binding="panel1" default-binding="true" layout-manager="GridLayoutManager" row-count="2" column-count="4" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
44
<margin top="0" left="0" bottom="0" right="0"/>
55
<constraints>
6-
<xy x="20" y="20" width="542" height="671"/>
6+
<xy x="20" y="20" width="570" height="671"/>
77
</constraints>
88
<properties/>
99
<border type="none"/>
@@ -47,7 +47,7 @@
4747
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="9" fill="0" indent="0" use-parent-layout="false"/>
4848
</constraints>
4949
<properties>
50-
<text value="Enable Plugin for this Project (change requires restart)"/>
50+
<text value="Enable Plugin for this Project (change requires reindex -&gt;)"/>
5151
</properties>
5252
</component>
5353
<component id="47a96" class="javax.swing.JButton" binding="buttonReindex">
@@ -56,7 +56,7 @@
5656
</constraints>
5757
<properties>
5858
<enabled value="true"/>
59-
<text value="Clean Index"/>
59+
<text value="Reindex"/>
6060
</properties>
6161
</component>
6262
<hspacer id="ef977">

src/com/magento/idea/magento2plugin/SettingsForm.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ public boolean isModified() {
8383
@Override
8484
public void apply() throws ConfigurationException {
8585
getSettings().pluginEnabled = pluginEnabled.isSelected();
86+
buttonReindex.setEnabled(getSettings().pluginEnabled);
87+
regenerateUrnMapButton.setEnabled(getSettings().pluginEnabled);
8688
}
8789

8890
@Override

0 commit comments

Comments
 (0)