Skip to content

Commit 7d856d9

Browse files
authored
Merge pull request #2 from 0xtbug/dev
v1.0.6
2 parents 6fe2b7b + 491ba0a commit 7d856d9

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "ZeroLimit",
4-
"version": "1.0.5",
4+
"version": "1.0.6",
55
"identifier": "com.0xtbug.zero-limit",
66
"build": {
77
"beforeDevCommand": "pnpm dev",

src/pages/AboutPage.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Button } from '@/components/ui/button';
88
import { Progress } from '@/components/ui/progress';
99
import { useUpdateStore } from '@/stores';
1010
import { useAppVersion } from '@/hooks';
11-
import { User, Github, ExternalLink, RefreshCw, Download, Loader2 } from 'lucide-react';
11+
import { User, Github, ExternalLink, RefreshCw, Download, Loader2, CheckCircle2 } from 'lucide-react';
1212
import { open } from '@tauri-apps/plugin-shell';
1313

1414
export function AboutPage() {
@@ -58,6 +58,14 @@ export function AboutPage() {
5858
</Button>
5959
)}
6060

61+
{/* Up to date message */}
62+
{status === 'uptodate' && (
63+
<div className="flex items-center justify-center gap-2 text-green-600 dark:text-green-500 animate-in fade-in slide-in-from-top-1 duration-300 py-2">
64+
<CheckCircle2 className="h-4 w-4" />
65+
<span className="text-sm font-medium">You are using the latest version.</span>
66+
</div>
67+
)}
68+
6169
{/* Update Available */}
6270
{status === 'available' && updateInfo && (
6371
<div className="text-center space-y-2">

src/stores/useUpdateStore.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { create } from 'zustand';
77
import { check, Update } from '@tauri-apps/plugin-updater';
88
import { relaunch } from '@tauri-apps/plugin-process';
99

10-
type UpdateStatus = 'idle' | 'checking' | 'available' | 'downloading' | 'ready' | 'error';
10+
type UpdateStatus = 'idle' | 'checking' | 'available' | 'downloading' | 'ready' | 'error' | 'uptodate';
1111

1212
interface UpdateInfo {
1313
version: string;
@@ -57,7 +57,7 @@ export const useUpdateStore = create<UpdateState & UpdateActions>((set, get) =>
5757
pendingUpdate: update,
5858
});
5959
} else {
60-
set({ status: 'idle', updateInfo: null });
60+
set({ status: 'uptodate', updateInfo: null });
6161
}
6262
} catch (error) {
6363
set({

0 commit comments

Comments
 (0)