Skip to content

fix: 优化指示器动画停止,避免信号干扰#229

Open
seer-by-sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix/indicator-ani-stop-signals
Open

fix: 优化指示器动画停止,避免信号干扰#229
seer-by-sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix/indicator-ani-stop-signals

Conversation

@seer-by-sentry
Copy link
Copy Markdown
Contributor

@seer-by-sentry seer-by-sentry Bot commented May 8, 2026

Fixes SECRANDOM-4A. The issue was that: QFluentWidgets' navigation animation callback attempts to access a destroyed NavigationTreeWidget after window closure, causing AttributeError.

  • 在停止指示器动画时,暂时阻塞信号。
  • 使用 try...finally 块确保即使发生异常,信号也能被重新启用。
  • 避免在动画停止过程中发出不必要的信号,提高稳定性。

This fix was generated by Seer in Sentry, triggered by wsxyt. 👁️ Run ID: 1259143

Not quite right? Click here to continue debugging with Seer.

@WSXYT WSXYT marked this pull request as ready for review May 8, 2026 16:44
Copilot AI review requested due to automatic review settings May 8, 2026 16:44
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a crash reported in SECRANDOM-4A by making the settings window shutdown path more robust: it attempts to stop QFluentWidgets navigation indicator animations without emitting signals that can trigger callbacks after the UI is being torn down.

Changes:

  • Block/unblock signals around indicatorAni.stop() using a try...finally to avoid signal-driven callbacks during teardown.
  • Minor change near show_settings_window_about() (currently introduces an inconsistent line ending on the modified line).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +427 to +431
indicator_ani.blockSignals(True)
try:
indicator_ani.stop()
finally:
indicator_ani.blockSignals(False)
self.activateWindow()
self.raise_()
self.switchTo(self.aboutInterface)
self.switchTo(self.aboutInterface)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant