From d0730c1c750b51fcfa40415f8d81078d10f84027 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 16 Mar 2023 20:50:39 +0000 Subject: [PATCH] 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. --- Userland/Applications/TextEditor/MainWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/TextEditor/MainWidget.cpp b/Userland/Applications/TextEditor/MainWidget.cpp index 7ec01e17fb..22b982c02e 100644 --- a/Userland/Applications/TextEditor/MainWidget.cpp +++ b/Userland/Applications/TextEditor/MainWidget.cpp @@ -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;