style: ruff check --fix --unsafe-fixes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user