feat(ui): 条目管理增强 — 重命名/删除/重排序

每行右侧增加 ⋯ 按钮,弹出菜单支持重命名、删除、上移、下移。
- renameEntry / deleteEntry / moveEntry 三个 appState 方法
- rowActionMenu 弹出菜单 + renameDialog + confirmDeleteDialog
- 删除自动注销快捷键,所有操作触发配置保存
- 保留顶栏 Add/Remove 全局按钮不变
This commit is contained in:
2026-06-12 09:19:07 +08:00
parent c0dd3b9028
commit 352b1d24b8
7 changed files with 461 additions and 1 deletions
+38
View File
@@ -467,3 +467,41 @@ other = "Minimize to tray when closing the window"
[hint_minimize_to_tray]
other = "Closing the window hides it to the system tray instead of exiting."
# --- Entry actions (rename / delete / reorder) ---
[btn_more]
other = "⋯"
[btn_delete]
other = "Delete"
[dialog_row_actions_title]
other = "Entry actions"
[action_rename]
other = "Rename..."
[action_delete]
other = "Delete..."
[action_move_up]
other = "Move up"
[action_move_down]
other = "Move down"
[dialog_rename_title]
other = "Rename entry"
[label_entry_name]
other = "New name"
[msg_empty_name]
other = "Name cannot be empty."
[dialog_confirm_delete_title]
other = "Confirm delete"
[msg_confirm_delete]
other = "Delete the entry \"%s\"? This cannot be undone."