Skip to content

Commit 0362014

Browse files
committed
Add link to previous versions and update Cap Pro settings
1 parent ad81ad9 commit 0362014

File tree

2 files changed

+25
-13
lines changed

2 files changed

+25
-13
lines changed

apps/desktop/src/routes/(window-chrome)/settings.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Button } from "@cap/ui-solid";
22
import { A, type RouteSectionProps } from "@solidjs/router";
33
import { getVersion } from "@tauri-apps/api/app";
44
import { getCurrentWindow, LogicalSize } from "@tauri-apps/api/window";
5+
import * as shell from "@tauri-apps/plugin-shell";
56
import "@total-typescript/ts-reset/filter-boolean";
67
import { createResource, For, onMount, Show, Suspense } from "solid-js";
78
import { CapErrorBoundary } from "~/components/CapErrorBoundary";
@@ -100,7 +101,18 @@ export default function Settings(props: RouteSectionProps) {
100101
</ul>
101102
<div class="p-[0.625rem] text-left flex flex-col">
102103
<Show when={version()}>
103-
{(v) => <p class="mb-2 text-xs text-gray-11">v{v()}</p>}
104+
{(v) => (
105+
<div class="mb-2 text-xs text-gray-11 flex flex-col items-start gap-0.5">
106+
<span>v{v()}</span>
107+
<button
108+
type="button"
109+
class="text-gray-11 hover:text-gray-12 underline transition-colors"
110+
onClick={() => shell.open("https://cap.so/download/versions")}
111+
>
112+
View previous versions
113+
</button>
114+
</div>
115+
)}
104116
</Show>
105117
{auth.data ? (
106118
<Button

apps/desktop/src/routes/(window-chrome)/settings/general.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -404,18 +404,6 @@ function Inner(props: { initialStore: GeneralSettingsStore | null }) {
404404
}}
405405
/>
406406

407-
<SettingGroup
408-
title="Cap Pro"
409-
titleStyling="bg-blue-500 py-1.5 mb-4 text-white text-xs px-2 rounded-lg"
410-
>
411-
<ToggleSettingItem
412-
label="Automatically open shareable links"
413-
description="Whether Cap should automatically open instant recordings in your browser"
414-
value={!settings.disableAutoOpenLinks}
415-
onChange={(v) => handleChange("disableAutoOpenLinks", !v)}
416-
/>
417-
</SettingGroup>
418-
419407
{ostype === "macos" && (
420408
<SettingGroup title="App">
421409
<ToggleSettingItem
@@ -556,6 +544,18 @@ function Inner(props: { initialStore: GeneralSettingsStore | null }) {
556544
</div>
557545
</SettingGroup>
558546

547+
<SettingGroup
548+
title="Cap Pro Settings"
549+
titleStyling="bg-blue-500 py-1.5 mb-4 text-white text-xs px-2 rounded-lg"
550+
>
551+
<ToggleSettingItem
552+
label="Automatically open shareable links"
553+
description="Whether Cap should automatically open instant recordings in your browser"
554+
value={!settings.disableAutoOpenLinks}
555+
onChange={(v) => handleChange("disableAutoOpenLinks", !v)}
556+
/>
557+
</SettingGroup>
558+
559559
<DefaultProjectNameCard
560560
onChange={(value) =>
561561
handleChange("defaultProjectNameTemplate", value)

0 commit comments

Comments
 (0)