Skip to content

Commit 7e5a106

Browse files
committed
[INTERNAL] fix selection indicator for default separator action
1 parent 07c11e7 commit 7e5a106

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/net/seesharpsoft/intellij/plugins/csv/actions/CsvDefaultSeparatorAction.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public boolean isSelected(@NotNull AnActionEvent anActionEvent) {
2222
if (psiFile == null) {
2323
return false;
2424
}
25-
return CsvHelper.getValueSeparator(psiFile) == null;
25+
return !CsvHelper.hasValueSeparatorAttribute(psiFile);
2626
}
2727

2828
@Override
@@ -31,7 +31,6 @@ public void setSelected(@NotNull AnActionEvent anActionEvent, boolean selected)
3131
if (psiFile == null) {
3232
return;
3333
}
34-
3534
CsvFileAttributes.getInstance(psiFile.getProject()).resetValueSeparator(psiFile);
3635
FileContentUtilCore.reparseFiles(psiFile.getVirtualFile());
3736

0 commit comments

Comments
 (0)