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:
Brandon Scott 2019-10-01 00:18:20 -05:00 committed by Andreas Kling
parent 3fb88cb76d
commit 08a1fb8f1a
Notes: sideshowbarker 2024-07-19 11:52:05 +09:00
4 changed files with 26 additions and 22 deletions

View file

@ -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 {};