mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 02:59:45 +00:00
LibGUI+Userland: Make TabWidget::*add_tab() take title using new string
This commit is contained in:
parent
5fed25ca9a
commit
797968c310
Notes:
sideshowbarker
2024-07-16 22:51:25 +09:00
Author: https://github.com/krkk
Commit: 797968c310
Pull-request: https://github.com/SerenityOS/serenity/pull/17800
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/awesomekling
18 changed files with 59 additions and 59 deletions
|
@ -1244,7 +1244,7 @@ ImageEditor* MainWidget::current_image_editor()
|
|||
|
||||
ImageEditor& MainWidget::create_new_editor(NonnullRefPtr<Image> image)
|
||||
{
|
||||
auto& image_editor = m_tab_widget->add_tab<PixelPaint::ImageEditor>("Untitled", image);
|
||||
auto& image_editor = m_tab_widget->add_tab<PixelPaint::ImageEditor>("Untitled"_string.release_value_but_fixme_should_propagate_errors(), image);
|
||||
|
||||
image_editor.on_active_layer_change = [&](auto* layer) {
|
||||
if (current_image_editor() != &image_editor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue