mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 11:42:38 +03:00
PixelPaint: Close image tabs on middle click
This commit is contained in:
parent
df195188bc
commit
5a5f6d11ef
Notes:
sideshowbarker
2024-07-18 03:27:25 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/5a5f6d11ef4 Pull-request: https://github.com/SerenityOS/serenity/pull/10210
@ -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…
Reference in New Issue
Block a user