Fix dock right click labels (#3626)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-01-05 10:08:58 -07:00 committed by GitHub
commit c066480e31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -651,9 +651,13 @@ impl Render for PanelButtons {
&& panel.position_is_valid(position, cx)
{
let panel = panel.clone();
menu = menu.entry(position.to_label(), None, move |cx| {
panel.set_position(position, cx);
})
menu = menu.entry(
format!("Dock {}", position.to_label()),
None,
move |cx| {
panel.set_position(position, cx);
},
)
}
}
menu