Skip to content

feat: 关闭窗口时提示保存改动#1

Merged
Charlo-O merged 1 commit intomasterfrom
codex/1
Mar 11, 2026
Merged

feat: 关闭窗口时提示保存改动#1
Charlo-O merged 1 commit intomasterfrom
codex/1

Conversation

@Charlo-O
Copy link
Owner

Summary

  • 关闭窗口时检测内容是否有改动,弹窗询问是否保存
  • Tauri 桌面端:保存 / 不保存 / 取消 三按钮对话框
  • Web 端:浏览器原生 beforeunload 提示
  • 版本升至 1.5.2

Test plan

  • 打开应用,编辑内容后关闭窗口,确认弹出保存提示
  • 点击"保存"后弹出文件选择器,保存后窗口关闭
  • 点击"不保存"后窗口直接关闭
  • 点击对话框 X 后窗口保持打开
  • 未修改内容时关闭窗口,不弹提示直接关闭

🤖 Generated with Claude Code

When the editor content has been modified, closing the window now shows
a confirmation dialog with Save / Don't Save / Cancel options.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Charlo-O Charlo-O merged commit 6db9fc2 into master Mar 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant