mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Remove stray printing in contacts panel
This commit is contained in:
parent
0533a0bd3c
commit
2a2698b8db
@ -361,7 +361,7 @@ impl ContactsPanel {
|
||||
cx.dispatch_action(RespondToContactRequest {
|
||||
user_id,
|
||||
accept: false,
|
||||
});
|
||||
})
|
||||
})
|
||||
.with_cursor_style(CursorStyle::PointingHand)
|
||||
.flex_float()
|
||||
@ -378,7 +378,7 @@ impl ContactsPanel {
|
||||
cx.dispatch_action(RespondToContactRequest {
|
||||
user_id,
|
||||
accept: true,
|
||||
});
|
||||
})
|
||||
})
|
||||
.with_cursor_style(CursorStyle::PointingHand)
|
||||
.boxed(),
|
||||
@ -438,9 +438,7 @@ impl ContactsPanel {
|
||||
.flex_float()
|
||||
.boxed()
|
||||
})
|
||||
.on_click(move |_, cx| {
|
||||
cx.dispatch_action(RemoveContact(user_id));
|
||||
})
|
||||
.on_click(move |_, cx| cx.dispatch_action(RemoveContact(user_id)))
|
||||
.with_cursor_style(CursorStyle::PointingHand)
|
||||
.flex_float()
|
||||
.boxed(),
|
||||
@ -488,9 +486,9 @@ impl ContactsPanel {
|
||||
ContactRequestStatus::None | ContactRequestStatus::RequestReceived => {
|
||||
"+"
|
||||
}
|
||||
ContactRequestStatus::Pending => "…",
|
||||
ContactRequestStatus::RequestSent => "-",
|
||||
ContactRequestStatus::RequestAccepted => unreachable!(),
|
||||
ContactRequestStatus::Pending
|
||||
| ContactRequestStatus::RequestAccepted => "…",
|
||||
};
|
||||
|
||||
Label::new(label.to_string(), theme.edit_contact.text.clone())
|
||||
@ -652,10 +650,6 @@ impl ContactsPanel {
|
||||
}
|
||||
|
||||
self.list_state.reset(self.entries.len());
|
||||
|
||||
log::info!("UPDATE ENTRIES");
|
||||
dbg!(&self.entries);
|
||||
|
||||
cx.notify();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user