style: ruff check --fix --unsafe-fixes

This commit is contained in:
2026-07-31 15:57:17 +02:00
parent 70c81abdd8
commit f63107a1e0
87 changed files with 413 additions and 481 deletions
+5 -7
View File
@@ -5,10 +5,10 @@ from dataclasses import dataclass
from typing import Any
from PySide6.QtCore import (
Property,
QEasingCurve,
QObject,
QPropertyAnimation,
Property,
QRect,
Qt,
QTimer,
@@ -460,8 +460,7 @@ class TutorialManager(QObject):
self.tutorial_stopped.emit(scenario_id)
return
if new_index < 0:
new_index = 0
new_index = max(new_index, 0)
self.runtime_state.active_step_index = new_index
step = self.current_scenario.steps[new_index]
@@ -688,9 +687,8 @@ class TutorialManager(QObject):
step.skippable
and self.current_scenario is not None
and self.current_scenario.allow_skip
):
if self.runtime_state is not None:
self._advance_to_index(self.runtime_state.active_step_index + 1)
return
) and self.runtime_state is not None:
self._advance_to_index(self.runtime_state.active_step_index + 1)
return
self.overlay.next_button.setEnabled(True)