remove dbg

This commit is contained in:
Mikayla 2023-11-14 15:57:23 -08:00
parent b81b96f353
commit 817c6dd49c
No known key found for this signature in database

View File

@ -33,9 +33,7 @@ pub fn init(cx: &mut AppContext) {
impl FileFinder {
fn register(workspace: &mut Workspace, _: &mut ViewContext<Workspace>) {
dbg!("REGISTERING");
workspace.register_action(|workspace, _: &Toggle, cx| {
dbg!("CALLING ACTION");
let Some(file_finder) = workspace.current_modal::<Self>(cx) else {
Self::open(workspace, cx);
return;
@ -594,7 +592,6 @@ impl PickerDelegate for FileFinderDelegate {
}
fn confirm(&mut self, secondary: bool, cx: &mut ViewContext<Picker<FileFinderDelegate>>) {
dbg!("CONFIRMING???");
if let Some(m) = self.matches.get(self.selected_index()) {
if let Some(workspace) = self.workspace.upgrade() {
let open_task = workspace.update(cx, move |workspace, cx| {
@ -692,7 +689,6 @@ impl PickerDelegate for FileFinderDelegate {
.log_err();
}
}
dbg!("DISMISSING");
finder
.update(&mut cx, |_, cx| cx.emit(ModalEvent::Dismissed))
.ok()?;