88import com .intellij .ui .components .JBTextField ;
99import com .intellij .util .ui .FormBuilder ;
1010import java .awt .*;
11- import java .util .Arrays ;
1211import javax .swing .*;
1312import org .jetbrains .annotations .Nls ;
1413import org .jetbrains .annotations .NotNull ;
@@ -96,14 +95,15 @@ private JComponent createSectionHeader(String label) {
9695 .getPanel ();
9796 }
9897
99- private Boolean getSelected () {
98+ private Boolean getSelectedSolutionRunOnSave () {
10099 return ((ComboItem ) this .solutionRunOnSaveComboBox .getSelectedItem ()).value ;
101100 }
102101
103102 @ Override
104103 public boolean isModified () {
105104 return (
106- CSharpierSettings .getInstance (this .project ).getRunOnSave () != this .getSelected () ||
105+ CSharpierSettings .getInstance (this .project ).getRunOnSave () !=
106+ this .getSelectedSolutionRunOnSave () ||
107107 CSharpierSettings .getInstance (this .project ).getCustomPath () !=
108108 this .customPathTextField .getText () ||
109109 CSharpierSettings .getInstance (this .project ).getUseCustomPath () !=
@@ -117,7 +117,7 @@ public boolean isModified() {
117117 public void apply () {
118118 var settings = CSharpierSettings .getInstance (this .project );
119119
120- settings .setRunOnSave (this .getSelected ());
120+ settings .setRunOnSave (this .getSelectedSolutionRunOnSave ());
121121 settings .setCustomPath (this .customPathTextField .getText ());
122122 settings .setDisableCSharpierServer (this .disableCSharpierServerCheckBox .isSelected ());
123123 settings .setUseCustomPath (this .useCustomPath .isSelected ());
0 commit comments