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 chooser (type='save') was ignoring initial.filename argument #28

Merged
merged 1 commit into from
Oct 28, 2019

Conversation

tmelliott
Copy link
Contributor

Line 85, I've changed to use setCurrentName(), as (at least on Linux), setFilename() wasn't working (i.e., the text box at the top of the window doesn't show "myfile.txt"):

gfile(type="save", initial.file="myfile.txt")

Also just using basename() of the provided filename, as gWidgets2::gfile() pastes the initial directory and filename together (which looks odd in the file chooser).

For my use-case, it seems to be working OK now, but if I've broken some other scenario let me know and I'll have a rethink.

(Sorry my editor went and removed a bunch of whitespace!)

@jverzani
Copy link
Owner

Awesome. Thanks for the attention!

@jverzani jverzani merged commit 6e128f7 into jverzani:master Oct 28, 2019
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.

2 participants