Skip to content

Commit 09c14ec

Browse files
fix: 优化指示器动画停止,避免信号干扰 (#229)
Co-authored-by: seer-by-sentry[bot] <157164994+seer-by-sentry[bot]@users.noreply.github.com>
1 parent 701d34d commit 09c14ec

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

app/view/settings/settings.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,11 @@ def _stop_navigation_animations(self):
424424
if panel is not None:
425425
indicator_ani = getattr(panel, "indicatorAni", None)
426426
if indicator_ani is not None:
427-
indicator_ani.stop()
427+
indicator_ani.blockSignals(True)
428+
try:
429+
indicator_ani.stop()
430+
finally:
431+
indicator_ani.blockSignals(False)
428432
except Exception:
429433
pass
430434

@@ -1338,4 +1342,4 @@ def show_settings_window_about(self):
13381342
self.show()
13391343
self.activateWindow()
13401344
self.raise_()
1341-
self.switchTo(self.aboutInterface)
1345+
self.switchTo(self.aboutInterface)

0 commit comments

Comments
 (0)