editor: Avoid showing an error dialog when pressing Ctrl+S
All checks were successful
Build and test / build (push) Successful in 1m52s
All checks were successful
Build and test / build (push) Successful in 1m52s
This commit is contained in:
parent
d908ccea6b
commit
9e65131452
@ -157,7 +157,7 @@ Result<void> EditorWidget::save_file()
|
|||||||
if (m_path.is_empty())
|
if (m_path.is_empty())
|
||||||
{
|
{
|
||||||
TRY(save_file_as());
|
TRY(save_file_as());
|
||||||
return err(ENOENT);
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
auto file = TRY(os::File::open_or_create(m_path.view(), os::File::WriteOnly));
|
auto file = TRY(os::File::open_or_create(m_path.view(), os::File::WriteOnly));
|
||||||
|
Loading…
Reference in New Issue
Block a user