!25 fix: #I7VAM0 修复编码状态栏未更新的问题

Merge pull request !25 from songdragon/feature-I7VAM0
This commit is contained in:
Luke 2023-08-23 18:02:59 +00:00 committed by Gitee
commit 80872b6511
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ public class JNotepadTab extends Tab {
lineNumberTextArea = textArea;
this.setContent(lineNumberTextArea);
setAutoLine(GlobalConfig.getConfig().getAutoLineConfig());
this.charset = charset;
}
public boolean isAutoLine() {

View File

@ -30,7 +30,7 @@ public class JNotepadTabPane extends TabPane {
JNotepadMenuBar.getMenuBar().updateMenuStatusBySelectedTab();
}
// 更新状态标签
JNotepadStatusBox.getInstance().updateWordCountStatusLabel();
JNotepadStatusBox.getInstance().updateWhenTabSelected();
}
);
}