editor: Avoid showing an error dialog when pressing Ctrl+S
All checks were successful
Build and test / build (push) Successful in 1m52s

This commit is contained in:
apio 2024-10-26 14:00:57 +02:00
parent d908ccea6b
commit 9e65131452
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -157,7 +157,7 @@ Result<void> EditorWidget::save_file()
if (m_path.is_empty())
{
TRY(save_file_as());
return err(ENOENT);
return {};
}
auto file = TRY(os::File::open_or_create(m_path.view(), os::File::WriteOnly));