Skip to content

Commit 6934b89

Browse files
committed
self review
1 parent 2f0b44f commit 6934b89

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Src/CSharpier.Rider/src/main/java/com/intellij/csharpier/CSharpierSettingsComponent.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import com.intellij.ui.components.JBTextField;
99
import com.intellij.util.ui.FormBuilder;
1010
import java.awt.*;
11-
import java.util.Arrays;
1211
import javax.swing.*;
1312
import org.jetbrains.annotations.Nls;
1413
import 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

Comments
 (0)