Merge branch 'main' into fix-panel-resize
This commit is contained in:
commit
cf037ea4a8
13 changed files with 131 additions and 95 deletions
|
@ -1493,6 +1493,14 @@ impl Pane {
|
|||
.on_click(
|
||||
cx.listener(move |pane: &mut Self, _, cx| pane.activate_item(ix, true, true, cx)),
|
||||
)
|
||||
// TODO: This should be a click listener with the middle mouse button instead of a mouse down listener.
|
||||
.on_mouse_down(
|
||||
MouseButton::Middle,
|
||||
cx.listener(move |pane, _event, cx| {
|
||||
pane.close_item_by_id(item_id, SaveIntent::Close, cx)
|
||||
.detach_and_log_err(cx);
|
||||
}),
|
||||
)
|
||||
.on_drag(
|
||||
DraggedTab {
|
||||
pane: cx.view().clone(),
|
||||
|
|
|
@ -2520,8 +2520,7 @@ impl Workspace {
|
|||
.any(|item| item.has_conflict(cx) || item.is_dirty(cx));
|
||||
if is_edited != self.window_edited {
|
||||
self.window_edited = is_edited;
|
||||
// todo!()
|
||||
// cx.set_window_edited(self.window_edited)
|
||||
cx.set_window_edited(self.window_edited)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue