fix: #I7T5XZ 修复自动保存失效的问题

This commit is contained in:
songdragon 2023-08-15 10:05:46 +08:00
parent a9ffa47801
commit ea91fcb8bb

View File

@ -155,6 +155,7 @@ public class Controller implements ControllerInterface {
textArea.setText(text); textArea.setText(text);
Tab tab = createNewTab(file.getName(), textArea); Tab tab = createNewTab(file.getName(), textArea);
tab.setUserData(file);
ViewManager.tabPane.getTabs().add(tab); ViewManager.tabPane.getTabs().add(tab);
ViewManager.tabPane.getSelectionModel().select(tab); ViewManager.tabPane.getSelectionModel().select(tab);
updateStatusLabel(textArea); updateStatusLabel(textArea);