mirror of
https://github.com/RGBCube/serenity
synced 2025-05-21 23:25:07 +00:00
FontEditor: Filter files by BitmapFont in FilePicker
This commit is contained in:
parent
a62f204b25
commit
587c44cfbb
1 changed files with 3 additions and 1 deletions
|
@ -130,7 +130,9 @@ ErrorOr<void> MainWidget::create_actions()
|
||||||
m_open_action = GUI::CommonActions::make_open_action([this](auto&) {
|
m_open_action = GUI::CommonActions::make_open_action([this](auto&) {
|
||||||
if (!request_close())
|
if (!request_close())
|
||||||
return;
|
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())
|
if (response.is_error())
|
||||||
return;
|
return;
|
||||||
auto file = response.release_value();
|
auto file = response.release_value();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue