mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 09:18:52 +00:00
LibGUI+PaintBrush: Fix to GFilePicker and PaintBrush enhancements.
GFilePicker - Fixed GFilePicker to use new ref-counted construct method to stop crashing on open dialog. - PaintBrush is still crashing on open dialog due to an unrelated issue. PaintBrush - Created 16x16 icon for PaintBrush - Moved Open option into App menu. - Changed help menu to make use of the standardized About dialog.
This commit is contained in:
parent
3fb88cb76d
commit
08a1fb8f1a
Notes:
sideshowbarker
2024-07-19 11:52:05 +09:00
Author: https://github.com/xeons
Commit: 08a1fb8f1a
Pull-request: https://github.com/SerenityOS/serenity/pull/621
4 changed files with 26 additions and 22 deletions
|
@ -15,10 +15,10 @@
|
|||
|
||||
Optional<String> GFilePicker::get_open_filepath()
|
||||
{
|
||||
GFilePicker picker(Mode::Open);
|
||||
auto picker = GFilePicker::construct(Mode::Open);
|
||||
|
||||
if (picker.exec() == GDialog::ExecOK) {
|
||||
String file_path = picker.selected_file().string();
|
||||
if (picker->exec() == GDialog::ExecOK) {
|
||||
String file_path = picker->selected_file().string();
|
||||
|
||||
if (file_path.is_null())
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue