mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 23:52:07 +00:00
HackStudio: Show the 'Save as...' dialog when saving uncreated file
Previously when user wanted to save an uncreated file, the program would just quietly ignore the save request, without giving any message. This can be seen when creating a new editor in split view mode.
This commit is contained in:
parent
8516b9532e
commit
a2cb5c862d
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ NonnullRefPtr<GUI::Action> HackStudioWidget::create_save_action()
|
|||
{
|
||||
return GUI::CommonActions::make_save_action([&](auto&) {
|
||||
if (active_file().is_empty())
|
||||
return;
|
||||
m_save_as_action->activate();
|
||||
|
||||
current_editor_wrapper().save();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue