1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:37:44 +00:00

PixelPaint: Use 'save' action in toolbar instead of 'save as'

I think this is likely the more common operation and makes more sense
in the toolbar. It calls the 'save as' action internally anyway if there
is no associated file.
This commit is contained in:
Mustafa Quraish 2022-01-04 22:12:24 -05:00 committed by Andreas Kling
parent c03f271bbf
commit e2c73a114d

View file

@ -651,7 +651,7 @@ void MainWidget::initialize_menubar(GUI::Window& window)
auto& toolbar = *find_descendant_of_type_named<GUI::Toolbar>("toolbar"); auto& toolbar = *find_descendant_of_type_named<GUI::Toolbar>("toolbar");
toolbar.add_action(*m_new_image_action); toolbar.add_action(*m_new_image_action);
toolbar.add_action(*m_open_image_action); toolbar.add_action(*m_open_image_action);
toolbar.add_action(*m_save_image_as_action); toolbar.add_action(*m_save_image_action);
toolbar.add_separator(); toolbar.add_separator();
toolbar.add_action(*m_copy_action); toolbar.add_action(*m_copy_action);
toolbar.add_action(*m_paste_action); toolbar.add_action(*m_paste_action);