Skip to content

Commit 959ff97

Browse files
committed
Fix notification
[before] if enabled setting is changed [after] if settings are changed
1 parent 3657595 commit 959ff97

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/org/netbeans/modules/php/wordpress/customizer/WordPressCustomizerExtender.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ public EnumSet<Change> save(PhpModule pm) {
167167
boolean isEnabled = getPanel().isPluginEnabled();
168168
if (originalEnabled != isEnabled) {
169169
WordPressPreferences.setEnabled(phpModule, isEnabled);
170-
WordPressModule wpModule = WordPressModule.Factory.forPhpModule(phpModule);
171-
wpModule.notifyPropertyChanged(new PropertyChangeEvent(this, WordPressModule.PROPERTY_CHANGE_WP, null, null));
172170
}
173171

174172
String customContentName = getPanel().getCustomContentName();
@@ -191,6 +189,8 @@ public EnumSet<Change> save(PhpModule pm) {
191189
WordPressPreferences.setThemesPath(phpModule, themes);
192190
}
193191

192+
WordPressModule wpModule = WordPressModule.Factory.forPhpModule(phpModule);
193+
wpModule.notifyPropertyChanged(new PropertyChangeEvent(this, WordPressModule.PROPERTY_CHANGE_WP, null, null));
194194
return EnumSet.of(Change.FRAMEWORK_CHANGE);
195195
}
196196

0 commit comments

Comments
 (0)