fix:flickering, stale runs, macOS bugs provided by coderabbit and thread countdown token

This commit is contained in:
Galactic99
2026-04-16 18:27:00 +05:30
parent 1670db41a8
commit 6b08a0a72a
7 changed files with 91 additions and 18 deletions
+6 -2
View File
@@ -1,7 +1,7 @@
import { useEffect, useState } from "react";
export function CountdownOverlay() {
const [value, setValue] = useState(3);
const [value, setValue] = useState<number | null>(null);
useEffect(() => {
const unsubscribe = window.electronAPI.onCountdownOverlayValue((nextValue) => {
@@ -13,7 +13,11 @@ export function CountdownOverlay() {
return (
<div className="w-screen h-screen bg-transparent flex items-center justify-center pointer-events-none select-none">
<div className="text-white/90 text-[120px] font-bold leading-none tabular-nums">{value}</div>
{value === null ? null : (
<div className="text-white/90 text-[120px] font-bold leading-none tabular-nums">
{value}
</div>
)}
</div>
);
}