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
@@ -465,3 +465,41 @@ other = "Beim Schließen in den Tray minimieren"
[hint_minimize_to_tray]
other = "Schließen des Fensters versteckt es im System-Tray statt das Programm zu beenden."
# --- Eintragsaktionen (umbenennen / löschen / verschieben) ---
[btn_more]
other = "⋯"
[btn_delete]
other = "Löschen"
[dialog_row_actions_title]
other = "Eintragsaktionen"
[action_rename]
other = "Umbenennen..."
[action_delete]
other = "Löschen..."
[action_move_up]
other = "Nach oben"
[action_move_down]
other = "Nach unten"
[dialog_rename_title]
other = "Eintrag umbenennen"
[label_entry_name]
other = "Neuer Name"
[msg_empty_name]
other = "Name darf nicht leer sein."
[dialog_confirm_delete_title]
other = "Löschen bestätigen"
[msg_confirm_delete]
other = "Eintrag \"%s\" wirklich löschen? Dies kann nicht rückgängig gemacht werden."
+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."
+38
View File
@@ -465,3 +465,41 @@ other = "关闭窗口时最小化到托盘"
[hint_minimize_to_tray]
other = "勾选后点击窗口关闭按钮将隐藏到系统托盘而非退出程序。"
# --- 条目操作(重命名 / 删除 / 重排序) ---
[btn_more]
other = "⋯"
[btn_delete]
other = "删除"
[dialog_row_actions_title]
other = "条目操作"
[action_rename]
other = "重命名..."
[action_delete]
other = "删除..."
[action_move_up]
other = "上移"
[action_move_down]
other = "下移"
[dialog_rename_title]
other = "重命名条目"
[label_entry_name]
other = "新名称"
[msg_empty_name]
other = "名称不能为空。"
[dialog_confirm_delete_title]
other = "确认删除"
[msg_confirm_delete]
other = "确定删除条目 \"%s\"?此操作不可撤销。"