Unsaved new documents created in a second window appear lost if the window is closed
- 主要语言
- Vala
- 星标
- 521
- 派生
- 118
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 14
描述
### What Happened?
Created a new document and opened it in a new window. Edited the document. Closed the window. The window closed without warning. The autosave feature was off.
The document was in fact saved in `~/.local/shared/io.elementary.code/unsaved` but was not restored when the app was closed and restarted as it was not open in the first window. There was no way to restore it through the apps UI unless you knew where it was.
### Steps to Reproduce
1. Turn off autosave
2. Create a new document and then open it in a new window.
3. Alternatively, open a new window and create a new document in it.
4. Add some text
5. Close the window
6. The window closed without any warning
7. Close the app and restart it
8. The new document is not restored
9.
### Expected Behavior
Either throw a warning dialog when a window is closed with an unsaved new document or restore all unsaved new documents into the first window on restarting the app (subject to privacy settings).
### OS Version
8.x (Circe)
### Session Type
Classic Session (X11, This is the default)
### Software Version
Latest release (I have run all updates)
### Log Output
_No response_
### Hardware Info
_No response_
贡献指南
调研方向
在禁用 autosave 的情况下,使用第二个窗口中的新文档重现该报告,然后检查应用如何处理 ~/.local/shared/io.elementary.code/unsaved 下的未保存文件。将关闭窗口时的行为与重启后的恢复进行比较,并将 done 定义为:关闭时显示警告,或在第一个窗口中可靠地恢复所有符合条件的未保存文档。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- linux
- 领域
- desktop
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100