Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GFilePicker: Quality of life improvements. Fixes (#367) #370

Merged
merged 1 commit into from
Jul 28, 2019

Conversation

RyanGrieb
Copy link
Contributor

I tried adding key events to GDialog to allow ESC on exit but the components in the dialog weren't loading when the event function (from CObject) was being overwritten. Is the event being constantly called which is preventing us from going any further?

Copy link
Collaborator

@awesomekling awesomekling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome :))

@@ -48,7 +48,7 @@ GFilePicker::GFilePicker(Mode mode, const StringView& path, CObject* parent)
, m_model(GDirectoryModel::create())
, m_mode(mode)
{
set_title("GFilePicker");
set_title(m_mode == Mode::Open ? "GFilePicker: Open File" : "GFilePicker: Save File");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's get rid of "GFilePicker: " and just say "Open File" or "Save File"

Added:
-Default to home directory on open
-Save Button Focous.
-Correct title for the mode were in
-Home shortcut
@RyanGrieb
Copy link
Contributor Author

This should be done too

@awesomekling
Copy link
Collaborator

Stellar!

@awesomekling awesomekling merged commit 731f91f into SerenityOS:master Jul 28, 2019
RyanGrieb added a commit to RyanGrieb/serenity that referenced this pull request Jul 28, 2019
Added:
- Default to home directory on open.
- Save button focus.
- Correct title for the mode were in.
- Home directory shortcut.
@RyanGrieb RyanGrieb deleted the filepicker-fix branch July 29, 2019 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants