mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
PixelPaint: Close image tabs on middle click
This commit is contained in:
parent
df195188bc
commit
5a5f6d11ef
1 changed files with 4 additions and 0 deletions
|
@ -55,6 +55,10 @@ MainWidget::MainWidget()
|
|||
m_tool_properties_widget->set_active_tool(tool);
|
||||
};
|
||||
|
||||
m_tab_widget->on_middle_click = [&](auto& widget) {
|
||||
m_tab_widget->on_tab_close_click(widget);
|
||||
};
|
||||
|
||||
m_tab_widget->on_tab_close_click = [&](auto& widget) {
|
||||
auto& image_editor = verify_cast<PixelPaint::ImageEditor>(widget);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue