diff --git a/apps/desktop/src/routes/(window-chrome)/update.tsx b/apps/desktop/src/routes/(window-chrome)/update.tsx index bc48d5dc..70b0005c 100644 --- a/apps/desktop/src/routes/(window-chrome)/update.tsx +++ b/apps/desktop/src/routes/(window-chrome)/update.tsx @@ -57,7 +57,9 @@ export default function () { }) .then(async () => { updateStatusActions.mutate({ type: "done" }); - getCurrentWindow().requestUserAttention(UserAttentionType.Informational); + getCurrentWindow().requestUserAttention( + UserAttentionType.Informational + ); }) .catch(() => navigate("/")); }) diff --git a/apps/desktop/src/routes/editor/Player.tsx b/apps/desktop/src/routes/editor/Player.tsx index 89645869..da48c1bc 100644 --- a/apps/desktop/src/routes/editor/Player.tsx +++ b/apps/desktop/src/routes/editor/Player.tsx @@ -4,12 +4,21 @@ import { ToggleButton as KToggleButton } from "@kobalte/core/toggle-button"; import { createEventListener } from "@solid-primitives/event-listener"; import { createElementBounds } from "@solid-primitives/bounds"; import { cx } from "cva"; -import { For, Show, Suspense, createEffect, createSignal } from "solid-js"; +import { + For, + Show, + Suspense, + createEffect, + createResource, + createSignal, +} from "solid-js"; import { reconcile } from "solid-js/store"; +import { useNavigate } from "@solidjs/router"; import { type AspectRatio, commands } from "~/utils/tauri"; import { FPS, OUTPUT_SIZE, useEditorContext } from "./context"; import { ASPECT_RATIOS } from "./projectConfig"; +import { authStore } from "~/store"; import { ComingSoonTooltip, DropdownItem, @@ -23,6 +32,8 @@ import { import { formatTime } from "./utils"; export function Player() { + const navigate = useNavigate(); + const [auth] = createResource(() => authStore.get()); const { project, videoId, @@ -216,9 +227,18 @@ export function Player() { }} -