mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
TextEditor: Open files with ReadOnly when we're just reading them
This commit is contained in:
parent
c343e9a4fd
commit
71840c1bf4
Notes:
sideshowbarker
2024-07-18 09:20:50 +09:00
Author: https://github.com/gunnarbeutner
Commit: 71840c1bf4
Pull-request: https://github.com/SerenityOS/serenity/pull/8626
Reviewed-by: https://github.com/timmot
2 changed files with 2 additions and 2 deletions
|
@ -260,7 +260,7 @@ MainWidget::MainWidget()
|
|||
});
|
||||
|
||||
m_open_action = GUI::CommonActions::make_open_action([this](auto&) {
|
||||
auto fd_response = m_file_system_access_client->prompt_open_file(Core::StandardPaths::home_directory(), Core::OpenMode::ReadWrite);
|
||||
auto fd_response = m_file_system_access_client->prompt_open_file(Core::StandardPaths::home_directory(), Core::OpenMode::ReadOnly);
|
||||
|
||||
if (fd_response.error() != 0) {
|
||||
if (fd_response.error() != -1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue