mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-01 12:28:12 +08:00
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:
co-authored by
Keavon Chambers
parent
bfee09fe75
commit
421e7c025f
@@ -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()
|
||||
}]]),
|
||||
|
||||
Reference in New Issue
Block a user