fix: keep open drawing when creating new file

This commit is contained in:
Hakan Seven committed 2026-05-03 19:55:38 +03:00
1 parent c51eeb4ad0
commit 1b4c5e13e5
3 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -489,7 +489,7 @@ impl H7CAD {
Message::ClearScene => {
let i = self.active_tab;
self.push_undo_snapshot(i, "NEW");
self.push_undo_snapshot(i, "CLEAR");
self.tabs[i].scene.clear();
crate::linetypes::populate_document(&mut self.tabs[i].scene.document);
self.tabs[i].properties = PropertiesPanel::empty();