-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add default file extension configuration #1995
Conversation
@Lyqst Thank you for your contribution. I didn't test the feature in detail, but I have a few small criticisms:
|
@veracioux Thanks for your comments!
Not sure what you mean with spin box, but when I test these changes on my machine (Manjaro), it loads whatever option has been previously saved. Maybe I'm missing something here, please let me know.
I see your point, makes total sense to keep compatibility with existing configs. I'll change this back to the old name.
I agree, I'll make this change. |
@Lyqst I meant to say combo box instead of spin box. Confused them because they look similar. And it does actually load the extension from the config. But my config contained While you are at it, would you mind adding a |
Hi @veracioux, I've implemented the ValueHandler, with the added value that the config will now accept image formats with or without the |
@Lyqst Thanks for the changes. I hope the There are a few problems though:
|
@veracioux I think it was intuitive enough! Only thing I wasn't clear at first was to set the type of the handler in the recognizedGeneralOptions map, but figured it out after it a bit of digging.
It was an issue in the check function, it was comparing against the raw
Had to pass the format to the properScreenshotPath call so it could use it to generate the filename. |
@Lyqst Working like a charm!
Thanks for the feedback. I hope this will be crystal clear to new contributors once we make a developer documentation. If it's not too much of a bother, could you just place the "Preferred save file extension" along with its combo box into the "Save Path" group for better indentation? Just for aesthetic reasons. Other than that, if you have nothing to add and if the checks pass, I can get this merged. |
@veracioux done! |
@Lyqst Perfect! Thank you very much for your contribution. |
Closes #1304
There was already a config option for this, called
setSaveAsFileExtension
, but it wasn't exposed in the configuration panel. I've changed it todefaultFileExtension
so it has a clearer name, and added it to the general options tab in the configuration panel as a ComboBox.