Fix deleting all artboards without crashing (#1502)

* Fix delete all artboards

* Remove unused import causing warning

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
0HyperCube
2023-12-11 13:46:08 -08:00
committed by GitHub
co-authored by Keavon Chambers
parent bfee09fe75
commit 421e7c025f
2 changed files with 6 additions and 4 deletions
@@ -254,7 +254,7 @@ impl LayoutHolder for MenuBarMessageHandler {
no_active_document,
MenuBarEntryChildren(vec![vec![MenuBarEntry {
label: "Clear Artboards".into(),
action: MenuBarEntry::create_action(|_| DialogMessage::RequestComingSoonDialog { issue: None }.into()),
action: MenuBarEntry::create_action(|_| GraphOperationMessage::ClearArtboards.into()),
disabled: no_active_document,
..MenuBarEntry::default()
}]]),