mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
GFilePicker: Make the path selected accessible externally
This commit is contained in:
committed by
Andreas Kling
parent
176f683f66
commit
23c90da26c
@@ -122,7 +122,9 @@ GFilePicker::GFilePicker(const String& path, CObject* parent)
|
||||
ok_button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
|
||||
ok_button->set_preferred_size({ 80, 0 });
|
||||
ok_button->set_caption("OK");
|
||||
ok_button->on_click = [this] (auto&) {
|
||||
ok_button->on_click = [this, filename_textbox] (auto&) {
|
||||
FileSystemPath path(String::format("%s/%s", m_model->path().characters(), filename_textbox->text().characters()));
|
||||
m_selected_file = path.string();
|
||||
done(ExecOK);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user