Skip to content

Commit

Permalink
Remove unsupported |= operand to prepare for PySide6 (#1910)
Browse files Browse the repository at this point in the history
Fixes TypeError: unsupported operand type(s) for |=: 'int' and 'Option'
  • Loading branch information
roomrys authored Aug 17, 2024
1 parent 8a8ed57 commit 9e8f2b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sleap/gui/dialogs/filedialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def set_dialog_type(cls, *args, **kwargs):

if cls.is_non_native:
kwargs["options"] = kwargs.get("options", 0)
kwargs["options"] |= QtWidgets.QFileDialog.DontUseNativeDialog
if not kwargs["options"]:
kwargs["options"] = QtWidgets.QFileDialog.DontUseNativeDialog

# Make sure we don't send empty options argument
if "options" in kwargs and not kwargs["options"]:
Expand Down

0 comments on commit 9e8f2b5

Please sign in to comment.