fix: keep open drawing when creating new file
This commit is contained in:
parent
c51eeb4ad0
commit
1b4c5e13e5
3 changed files with 3 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue