1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 18:45:07 +00:00

TextEditor: Remove confirmation when opening from recent files list

If the user has clicked to open a recent file, we don't need to ask them
again if they want to open it.
This commit is contained in:
Sam Atkins 2023-03-16 20:50:39 +00:00 committed by Sam Atkins
parent fb0fd85e97
commit d0730c1c75

View file

@ -388,7 +388,7 @@ void MainWidget::initialize_menubar(GUI::Window& window)
return;
}
auto response = FileSystemAccessClient::Client::the().request_file(&window, action.text(), Core::File::OpenMode::Read);
auto response = FileSystemAccessClient::Client::the().request_file_read_only_approved(&window, action.text());
if (response.is_error())
return;