mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 13:24:19 +00:00
Don't add a quick actions toolbar item for non-editor views
Rather than adding primary toolbar item that renders as empty, don't add an item at all. This prevents spurious spacing from being added after other primary toolbar items.
This commit is contained in:
parent
9521f6da42
commit
bb448b91d5
1 changed files with 3 additions and 2 deletions
|
@ -152,9 +152,10 @@ impl ToolbarItemView for QuickActionBar {
|
|||
cx.notify();
|
||||
}
|
||||
}));
|
||||
ToolbarItemLocation::PrimaryRight { flex: None }
|
||||
} else {
|
||||
ToolbarItemLocation::Hidden
|
||||
}
|
||||
|
||||
ToolbarItemLocation::PrimaryRight { flex: None }
|
||||
}
|
||||
None => {
|
||||
self.active_item = None;
|
||||
|
|
Loading…
Reference in a new issue