forked from 1b-agent/opencadstudio-upstream
fix: keep open drawing when creating new file
This commit is contained in:
1 parent
c51eeb4ad0
commit
1b4c5e13e5
3 files changed
+3
-4
No files matched your search
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user