summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorGeekFiftyFive <amylouisepellatt@gmail.com>2022-04-03 19:10:49 +0100
committerAndreas Kling <kling@serenityos.org>2022-04-03 23:27:23 +0200
commite292a038b7576c5798b22a392f73a6440bef2648 (patch)
tree20237515706a3cb5fe6d5198be3e86be4874303d /Userland/Applications
parent2b442ae44f30096e958186458d0e1d80157405b2 (diff)
downloadserenity-e292a038b7576c5798b22a392f73a6440bef2648.zip
ThemeEditor: Open files with ReadWrite
Open theme files with ReadWrite in order to fix issue when saving.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/ThemeEditor/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/ThemeEditor/main.cpp b/Userland/Applications/ThemeEditor/main.cpp
index ba5006ccde..7fe1ef07ac 100644
--- a/Userland/Applications/ThemeEditor/main.cpp
+++ b/Userland/Applications/ThemeEditor/main.cpp
@@ -389,14 +389,14 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(file_menu->try_add_action(GUI::CommonActions::make_save_action([&](auto&) {
if (path.has_value()) {
- save_to_result(FileSystemAccessClient::Client::the().try_request_file(window, *path, Core::OpenMode::WriteOnly | Core::OpenMode::Truncate));
+ save_to_result(FileSystemAccessClient::Client::the().try_request_file(window, *path, Core::OpenMode::ReadWrite | Core::OpenMode::Truncate));
} else {
- save_to_result(FileSystemAccessClient::Client::the().try_save_file(window, "Theme", "ini"));
+ save_to_result(FileSystemAccessClient::Client::the().try_save_file(window, "Theme", "ini", Core::OpenMode::ReadWrite | Core::OpenMode::Truncate));
}
})));
TRY(file_menu->try_add_action(GUI::CommonActions::make_save_as_action([&](auto&) {
- save_to_result(FileSystemAccessClient::Client::the().try_save_file(window, "Theme", "ini"));
+ save_to_result(FileSystemAccessClient::Client::the().try_save_file(window, "Theme", "ini", Core::OpenMode::ReadWrite | Core::OpenMode::Truncate));
})));
TRY(file_menu->try_add_separator());