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

File dialog wd #1111

Merged
merged 4 commits into from Jun 16, 2020
Merged

File dialog wd #1111

merged 4 commits into from Jun 16, 2020

Conversation

charlesdaniels
Copy link
Member

Description:

This is just the part of #1108 that changes the default starting directory to ./, pulled out per @andydotxyz and @okratitan

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

Where applicable:

  • Public APIs match existing style.
  • Any breaking changes have a deprecation path or have been discussed.

This swaps ~/ and ./ as the default directory.

I have also made / the failover if both of those error. That *shouldn't*
happen though.

Note that / should be safe even on Windows, since NT supports
POSIX-style paths. `/` should expand to NTFS's root, which is almost
always `C:\`.

XXX: might be worth setting the failover dir in the platform driver. `/`
is probably not a good failover choice for iOS, although I'm not sure
the file dialog even makes sense there, since they have their own system
one? I'm not an iOS dev, so I'm not sure.
@charlesdaniels charlesdaniels mentioned this pull request Jun 16, 2020
4 tasks
This implements just the effectiveStartingDir() and a basic test from PR fyne-io#1108.
It does provide the ability to set a custom starting dir.
Copy link
Member

@okratitan okratitan left a comment

Choose a reason for hiding this comment

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

Looks good. Nice work.

@andydotxyz andydotxyz merged commit a82c328 into fyne-io:master Jun 16, 2020
charlesdaniels added a commit to charlesdaniels/fyne that referenced this pull request Jun 16, 2020
This implements just the effectiveStartingDir() and a basic test from PR fyne-io#1108.
It does provide the ability to set a custom starting dir.

Cherry picked from fyne-io#1111 to fyne-io#1108 to avoid future merge conflicts.
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

3 participants