From 587c44cfbb1070bd43fc9c8fe71961d21ee3869c Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Tue, 16 May 2023 08:39:13 -0400 Subject: FontEditor: Filter files by BitmapFont in FilePicker --- Userland/Applications/FontEditor/MainWidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 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(); -- cgit v1.2.3