Closed roomrys closed 3 months ago
The recent update to the set_dialog_type
method in the FileDialog
class enhances the handling of dialog options. The modification introduces a conditional check to prevent the default DontUseNativeDialog
option from overwriting existing user-specified options. This improvement ensures that the dialog behaves more predictably and robustly when integrating non-native dialog types.
Files | Change Summary |
---|---|
sleap/gui/dialogs/filedialog.py |
Updated the set_dialog_type method to conditionally apply DontUseNativeDialog only when no options are specified, improving option handling. |
In the fields where rabbits play,
A dialog danced without delay.
With options safe and sound,
No defaults to confound.
Hopping joyously, we say,
"Thanks for changes brightening our day!" 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 74.47%. Comparing base (
7ed1229
) to head (be4e8b2
). Report is 34 commits behind head on develop.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
In a downstream branch, we get the error:
when upgrading to PySide6.
This PR refactors the offending line to have the same logic, but work for both PySide6 and PySide2.
Types of changes
Does this address any currently open issues?
1841
Outside contributors checklist
Thank you for contributing to SLEAP!
:heart:
Summary by CodeRabbit
DontUseNativeDialog
option is only applied when no other options have been specified.These enhancements contribute to a more intuitive and reliable user experience when interacting with file dialogs.