feat: 重复点击重命名不会覆盖名称

This commit is contained in:
songdragon 2023-08-30 22:37:35 +08:00
parent ba5172d78e
commit 3f7dbd7cd5
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ public class RenameFile implements EventHandler<ActionEvent> {
public void handle(ActionEvent actionEvent) {
// 获取当前标签页
JNotepadTab jnotepadtab = UiUtil.getJnotepadtab();
if (jnotepadtab == null) {
if (jnotepadtab == null || jnotepadtab.getText().isEmpty()) {
return;
}
// 判断当前是否为关联文件

View File

@ -30,7 +30,7 @@
.tab-title-editable {
-fx-fx-border-width: 0;
-fx-max-width: 80px;
-fx-max-height: 30px;
-fx-max-height: 20px;
-fx-font-size: 14px;
-fx-padding: 2px 2px 2px 2px;
}