Move PopoverButton
into ui
(#25724)
This PR moves the `PopoverButton` component into the `ui` crate. The `popover_button` crate only depended on `ui`, so there doesn't seem to be a need for it to live in its own crate and add another step in the crate graph. Release Notes: - N/A
This commit is contained in:
parent
3505a17452
commit
da22f21dec
11 changed files with 13 additions and 47 deletions
|
@ -10,7 +10,9 @@ use gpui::{
|
|||
use picker::{Picker, PickerDelegate};
|
||||
use project::{Project, ProjectPath};
|
||||
use std::sync::Arc;
|
||||
use ui::{prelude::*, HighlightedLabel, ListItem, ListItemSpacing, PopoverMenuHandle};
|
||||
use ui::{
|
||||
prelude::*, HighlightedLabel, ListItem, ListItemSpacing, PopoverMenuHandle, TriggerablePopover,
|
||||
};
|
||||
use util::ResultExt;
|
||||
use workspace::notifications::DetachAndPromptErr;
|
||||
use workspace::{ModalView, Workspace};
|
||||
|
@ -78,7 +80,7 @@ pub struct BranchList {
|
|||
_subscription: Option<Subscription>,
|
||||
}
|
||||
|
||||
impl popover_button::TriggerablePopover for BranchList {
|
||||
impl TriggerablePopover for BranchList {
|
||||
fn menu_handle(
|
||||
&mut self,
|
||||
_window: &mut Window,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue