fix: keep open drawing when creating new file

This commit is contained in:
Hakan Seven 2026-05-03 19:55:38 +03:00
commit 1b4c5e13e5
3 changed files with 3 additions and 4 deletions

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();