summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2023-05-16 08:39:13 -0400
committerAndreas Kling <kling@serenityos.org>2023-05-17 06:47:57 +0200
commit587c44cfbb1070bd43fc9c8fe71961d21ee3869c (patch)
treed44d0ecfce855918c3fceb4ed0f1d5151e30c0b3
parenta62f204b25b36e4af462167c6723b29a925e7717 (diff)
downloadserenity-587c44cfbb1070bd43fc9c8fe71961d21ee3869c.zip
FontEditor: Filter files by BitmapFont in FilePicker
-rw-r--r--Userland/Applications/FontEditor/MainWidget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Applications/FontEditor/MainWidget.cpp b/Userland/Applications/FontEditor/MainWidget.cpp
index dc885d26b5..07c88ffa49 100644
--- a/Userland/Applications/FontEditor/MainWidget.cpp
+++ b/Userland/Applications/FontEditor/MainWidget.cpp
@@ -130,7 +130,9 @@ ErrorOr<void> MainWidget::create_actions()
m_open_action = GUI::CommonActions::make_open_action([this](auto&) {
if (!request_close())
return;
- auto response = FileSystemAccessClient::Client::the().open_file(window(), "Open font file", "/res/fonts"sv);
+ auto response = FileSystemAccessClient::Client::the().open_file(window(), "Open", "/res/fonts"sv, Core::File::OpenMode::Read,
+ { { GUI::FileTypeFilter { "Bitmap Font Files", { { "font" } } },
+ GUI::FileTypeFilter::all_files() } });
if (response.is_error())
return;
auto file = response.release_value();