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

FontEditor: Use resultant FSAC filename when Saving-as

Fixes desync between file and title.
This commit is contained in:
thankyouverycool 2023-05-10 17:00:55 -04:00 committed by Andreas Kling
parent a0f160bfc4
commit c7eee16292

View file

@ -158,8 +158,8 @@ ErrorOr<void> MainWidget::create_actions()
if (response.is_error())
return;
if (auto result = save_file(lexical_path.string(), response.value().release_stream()); result.is_error())
show_error(result.release_error(), "Saving"sv, lexical_path.basename());
if (auto result = save_file(response.value().filename(), response.value().release_stream()); result.is_error())
show_error(result.release_error(), "Saving"sv, response.value().filename());
});
m_cut_action = GUI::CommonActions::make_cut_action([this](auto&) {