PixelPaint: Close image tabs on middle click

This commit is contained in:
Karol Kosek 2021-09-25 21:59:05 +02:00 committed by Andreas Kling
parent df195188bc
commit 5a5f6d11ef
Notes: sideshowbarker 2024-07-18 03:27:25 +09:00

View File

@ -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);