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

replace filechooser with native file chooser #114

Merged
merged 1 commit into from
Apr 13, 2024
Merged

Conversation

sfraczek
Copy link
Collaborator

@sfraczek sfraczek commented Apr 12, 2024

Replaces FileChooser with FileDialog which is system specific.
Fixes issue #95

It is pretty and it works.

bugs:
Entering empty string in double quotes "" opens a message box warning with hilarious text "Catastrophic failure". After the message box is closed, the dialog still operates as usual. I don't think there is any way to fix it other than report it to fltk-rs.
The files entered are not validated if they exists at this stage, because the files may be deleted afterward before clicking execute. However I think that additional layer of validation wouldn't hurt becuase one can enter unusual filenames. Especially the top one:
obraz
Fortunately, the execution validates the filenames which gives Error opening and parsing file: ...2022\"202208.pdf" "0" "?"

Todo:

  • Tested on windows.
  • Tested on linux.

@sfraczek sfraczek requested a review from jczaja April 12, 2024 16:43
@jczaja
Copy link
Collaborator

jczaja commented Apr 13, 2024

@sfraczek Thanks very much !

Copy link
Collaborator

@jczaja jczaja left a comment

Choose a reason for hiding this comment

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

LGTM

@jczaja jczaja merged commit ea9548e into main Apr 13, 2024
5 checks passed
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