mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +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
Notes:
sideshowbarker
2024-07-19 17:19:39 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/a2cb5c862d7 Pull-request: https://github.com/SerenityOS/serenity/pull/9360
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…
Reference in a new issue