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:
LemonNexus 2026-02-11 10:28:04 +00:00
parent c347b5d28e
commit 396a5451ac
2 changed files with 9 additions and 0 deletions

View File

@ -340,6 +340,9 @@ class GalleryDialog(QDialog):
def _load_sessions(self): def _load_sessions(self):
"""Load sessions for filter dropdown.""" """Load sessions for filter dropdown."""
current = self.session_filter.currentData() current = self.session_filter.currentData()
# Block signals to prevent recursion
self.session_filter.blockSignals(True)
self.session_filter.clear() self.session_filter.clear()
self.session_filter.addItem("All Sessions", None) self.session_filter.addItem("All Sessions", None)
@ -364,6 +367,9 @@ class GalleryDialog(QDialog):
self.session_filter.setCurrentIndex(idx) self.session_filter.setCurrentIndex(idx)
except Exception: except Exception:
pass pass
finally:
# Re-enable signals
self.session_filter.blockSignals(False)
def _on_filter_changed(self): def _on_filter_changed(self):
"""Handle filter changes.""" """Handle filter changes."""

View File

@ -115,6 +115,9 @@ class AvatarNamePage(QWizardPage):
form_layout.addRow("Avatar Name:", self.name_input) form_layout.addRow("Avatar Name:", self.name_input)
layout.addLayout(form_layout) layout.addLayout(form_layout)
# Register field for wizard access
self.registerField("avatar_name*", self.name_input)
layout.addSpacing(10) layout.addSpacing(10)
# Example # Example