mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +00:00
FontEditor: Use resultant FSAC filename when Saving-as
Fixes desync between file and title.
This commit is contained in:
parent
a0f160bfc4
commit
c7eee16292
1 changed files with 2 additions and 2 deletions
|
@ -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&) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue