fix: Silo_Pull progress dialog crash — PySide6 enum type mismatch #173

Merged
forbes merged 1 commits from fix/pull-progress-modality into main 2026-02-11 14:03:29 +00:00
Owner

Bug

Silo_Pull command crashes when attempting to download a file:

'PySide6.QtWidgets.QWidget.setWindowModality' called with wrong argument types:
  PySide6.QtWidgets.QWidget.setWindowModality(int)
Supported signatures:
  PySide6.QtWidgets.QWidget.setWindowModality(windowModality: PySide6.QtCore.Qt.WindowModality, /)

The progress dialog fails to display, causing the download to hang.

Root Cause

setWindowModality(2) passes a raw integer. PySide2/Qt5 accepted integers for enum parameters, but PySide6 requires the proper enum type. Since Kindred Create uses PySide6, this raises TypeError.

Fix

Replace setWindowModality(2) with setWindowModality(QtCore.Qt.WindowModal).

silo_commands.py:1218

Submodule Note

mods/silo submodule points to branch fix/pull-progress-modality on silo-mod.

## Bug `Silo_Pull` command crashes when attempting to download a file: ``` 'PySide6.QtWidgets.QWidget.setWindowModality' called with wrong argument types: PySide6.QtWidgets.QWidget.setWindowModality(int) Supported signatures: PySide6.QtWidgets.QWidget.setWindowModality(windowModality: PySide6.QtCore.Qt.WindowModality, /) ``` The progress dialog fails to display, causing the download to hang. ## Root Cause `setWindowModality(2)` passes a raw integer. PySide2/Qt5 accepted integers for enum parameters, but PySide6 requires the proper enum type. Since Kindred Create uses PySide6, this raises `TypeError`. ## Fix Replace `setWindowModality(2)` with `setWindowModality(QtCore.Qt.WindowModal)`. `silo_commands.py:1218` ## Submodule Note `mods/silo` submodule points to branch `fix/pull-progress-modality` on `silo-mod`.
forbes added 1 commit 2026-02-11 13:40:47 +00:00
fix: Silo_Pull progress dialog crash — PySide6 enum type mismatch
All checks were successful
Build and Test / build (pull_request) Successful in 47m35s
0827d2ad6e
setWindowModality(2) raises TypeError in PySide6 which requires the
proper enum QtCore.Qt.WindowModal instead of a raw integer. This caused
the pull download progress dialog to fail immediately, leaving it hung.
forbes merged commit 8580e06951 into main 2026-02-11 14:03:29 +00:00
forbes deleted branch fix/pull-progress-modality 2026-02-11 14:03:29 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kindred/create#173