fix: resolve Setup Wizard and Gallery dialog bugs
- Fix recursion error in GalleryDialog by blocking signals during session filter updates - Fix missing 'avatar_name' field in SetupWizard by registering the field properly - Both dialogs should now work without errors
This commit is contained in:
parent
c347b5d28e
commit
396a5451ac
|
|
@ -340,6 +340,9 @@ class GalleryDialog(QDialog):
|
|||
def _load_sessions(self):
|
||||
"""Load sessions for filter dropdown."""
|
||||
current = self.session_filter.currentData()
|
||||
|
||||
# Block signals to prevent recursion
|
||||
self.session_filter.blockSignals(True)
|
||||
self.session_filter.clear()
|
||||
self.session_filter.addItem("All Sessions", None)
|
||||
|
||||
|
|
@ -364,6 +367,9 @@ class GalleryDialog(QDialog):
|
|||
self.session_filter.setCurrentIndex(idx)
|
||||
except Exception:
|
||||
pass
|
||||
finally:
|
||||
# Re-enable signals
|
||||
self.session_filter.blockSignals(False)
|
||||
|
||||
def _on_filter_changed(self):
|
||||
"""Handle filter changes."""
|
||||
|
|
|
|||
|
|
@ -115,6 +115,9 @@ class AvatarNamePage(QWizardPage):
|
|||
form_layout.addRow("Avatar Name:", self.name_input)
|
||||
layout.addLayout(form_layout)
|
||||
|
||||
# Register field for wizard access
|
||||
self.registerField("avatar_name*", self.name_input)
|
||||
|
||||
layout.addSpacing(10)
|
||||
|
||||
# Example
|
||||
|
|
|
|||
Loading…
Reference in New Issue