1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +00:00

GFilePicker: Return paths as FileSystemPath rather than String

This commit is contained in:
faissaloo 2019-05-26 13:09:31 +01:00 committed by Andreas Kling
parent 9b86eb9fad
commit 6ac8aab941
3 changed files with 5 additions and 4 deletions

View file

@ -1,3 +1,4 @@
#include <AK/FileSystemPath.h>
#include <LibGUI/GDialog.h>
#include <LibGUI/GTableView.h>
@ -9,12 +10,12 @@ public:
virtual ~GFilePicker() override;
// TODO: Should this return a FileSystemPath instead?
String selected_file() const { return m_selected_file; }
FileSystemPath selected_file() const { return m_selected_file; }
virtual const char* class_name() const override { return "GFilePicker"; }
private:
GTableView* m_view { nullptr };
Retained<GDirectoryModel> m_model;
String m_selected_file;
FileSystemPath m_selected_file;
};