Explorar o código

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.
Sam Atkins %!s(int64=2) %!d(string=hai) anos
pai
achega
d0730c1c75
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Userland/Applications/TextEditor/MainWidget.cpp

+ 1 - 1
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;