feat: 重复点击重命名不会覆盖名称
This commit is contained in:
parent
ba5172d78e
commit
3f7dbd7cd5
@ -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;
|
||||
}
|
||||
// 判断当前是否为关联文件
|
||||
|
||||
@ -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;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user