GraphiteEditor / GraphiteEditor/Graphite

Cancelling document saving leads to content/modifications being lost

Đang mở
#3,558 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Desktop
Ngôn ngữ chính
Rust
Star
27.2k
Fork
1.3k
Merge trung bình
20 giờ 5 phút
Pull request đã merge (30 ngày)
57

Mô tả

**Description:**
If cancel saving the document then there will be no warning about unsaved changes when closing the document. This can lead to losing modifications after the document is closed.

**Environment:**
The bug is happening in the desktop version of Graphite app (commit 9f25c50c) on MS Windows 11 Home (v10.0.26200).

**Steps to reproduce:**
1. Open the desktop version of Graphite app.
2. Create the new document.
3. Draw an ellipse in the document.
4. Press Ctrl+S to save the document. (-> the asterisk on the document header disappears already at this point, which is suspicious)
5. In the Save dialog, press the Cancel button.
6. Close the document.

Expected: Graphite app shows the popup with the suggestion to save the document.
Actual: Graphite app silently closes the document, so all the content in the document is lost.

The similar issue is happening when you open document, make changes, start saving it as another document, pressing the Cancel button in the Save dialog and closing the document -> all the changes in the document are lost.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện luồng lưu và hủy trong ứng dụng Graphite dành cho máy tính để bàn trên Windows, sau đó theo dõi việc hủy Save ảnh hưởng như thế nào đến trạng thái đã sửa đổi của tài liệu và lời nhắc khi đóng. Hoàn tất khi việc hủy thao tác lưu thông thường hoặc Save As đều giữ lại chỉ báo chưa lưu và việc đóng tài liệu hiển thị cảnh báo lưu.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
rust
Lĩnh vực
desktop
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.