IDEA-170231 Do not show encoding in status bar if there are no open files

This commit is contained in:
Alexey Kudravtsev
2017-03-27 15:06:45 +03:00
parent d708b24559
commit 2559c1d6f1
@@ -214,7 +214,7 @@ public class EncodingPanel extends EditorBasedWidget implements StatusBarWidget.
if (file == null) {
toolTipText = "";
charsetName = "n/a";
charsetName = "";
}
else {
Pair<Charset, String> check = EncodingUtil.checkSomeActionEnabled(file);