Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(desktop): simplify recording folder open path
Richie McIlroyd6f2e67d06f4
diff --git a/apps/desktop/src/routes/(window-chrome)/new-main/TargetCard.tsx b/apps/desktop/src/routes/(window-chrome)/new-main/TargetCard.tsxindex 27e6d9e79..aa662ec9a 100644--- a/apps/desktop/src/routes/(window-chrome)/new-main/TargetCard.tsx+++ b/apps/desktop/src/routes/(window-chrome)/new-main/TargetCard.tsx@@ -272,11 +272,7 @@ export default function TargetCard(props: TargetCardProps) {e.stopPropagation();const recording = recordingTarget();if (!recording) return;- const path =- recording.mode === "instant"- ? `${recording.path}/content/output.mp4`- : recording.path;- commands.openFilePath(path);+ commands.openFilePath(recording.path);};const handleDeleteRecording = async (e: MouseEvent) => {diff --git a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsxindex 616a3670e..d1e8d570b 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx@@ -9,7 +9,6 @@ import {import { Channel, convertFileSrc } from "@tauri-apps/api/core";import { ask, confirm } from "@tauri-apps/plugin-dialog";import { remove } from "@tauri-apps/plugin-fs";-import { revealItemInDir } from "@tauri-apps/plugin-opener";import * as shell from "@tauri-apps/plugin-shell";import { cx } from "cva";import {@@ -478,11 +477,7 @@ function RecordingItem(props: {<TooltipIconButtontooltipText="Open recording bundle"onClick={() => {- const path =- mode() === "instant"- ? `${props.recording.path}/content/output.mp4`- : `${props.recording.path}/`;- revealItemInDir(path);+ props.onOpenFolder();}}><IconLucideFolder class="size-4" />