mirror of
https://github.com/usestrix/strix.git
synced 2026-08-16 09:26:39 +02:00
fix(tui): restore snappy sweep/progress animation frame rate (#759)
Co-authored-by: Ahmed Allam <ahmed39652003@gmail.com>
This commit is contained in:
committed by
GitHub
co-authored by
Ahmed Allam
parent
b7a1259593
commit
993fd41f32
@@ -1359,7 +1359,7 @@ class StrixTUIApp(App): # type: ignore[misc]
|
|||||||
|
|
||||||
def _start_dot_animation(self) -> None:
|
def _start_dot_animation(self) -> None:
|
||||||
if self._dot_animation_timer is None:
|
if self._dot_animation_timer is None:
|
||||||
self._dot_animation_timer = self.set_interval(0.25, self._animate_dots)
|
self._dot_animation_timer = self.set_interval(0.06, self._animate_dots)
|
||||||
|
|
||||||
def _stop_dot_animation(self) -> None:
|
def _stop_dot_animation(self) -> None:
|
||||||
if self._dot_animation_timer is not None:
|
if self._dot_animation_timer is not None:
|
||||||
|
|||||||
@@ -136,10 +136,10 @@ def _bare_skill_files(skill_name: str) -> list[Path]:
|
|||||||
key = (_ROOT_SKILL_CATEGORY, skill_name)
|
key = (_ROOT_SKILL_CATEGORY, skill_name)
|
||||||
if key in seen:
|
if key in seen:
|
||||||
continue
|
continue
|
||||||
candidate = _qualified_skill_file(skills_dir, _ROOT_SKILL_CATEGORY, skill_name)
|
root_candidate = _qualified_skill_file(skills_dir, _ROOT_SKILL_CATEGORY, skill_name)
|
||||||
if candidate is not None:
|
if root_candidate is not None:
|
||||||
seen.add(key)
|
seen.add(key)
|
||||||
candidates.append(candidate)
|
candidates.append(root_candidate)
|
||||||
return candidates
|
return candidates
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -638,7 +638,7 @@ def _build_dependency_metadata(
|
|||||||
*,
|
*,
|
||||||
package_name: str,
|
package_name: str,
|
||||||
installed_version: str,
|
installed_version: str,
|
||||||
package_ecosystem: str,
|
package_ecosystem: str | None,
|
||||||
fixed_version: str | None,
|
fixed_version: str | None,
|
||||||
) -> dict[str, str]:
|
) -> dict[str, str]:
|
||||||
metadata = {
|
metadata = {
|
||||||
|
|||||||
Reference in New Issue
Block a user