From 7c4b1d4dd2c74008049d074b086035f4e7616a74 Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Mon, 26 Jan 2026 17:23:18 -0800 Subject: [PATCH] Remove UpdateNotification component and its usage in App.tsx - Deleted the UpdateNotification component to streamline the application. - Removed its invocation from the App component, enhancing the overall code clarity. - Updated Assets.car file to reflect changes in the application structure. --- app/src/App.tsx | 3 - app/src/components/UpdateNotification.tsx | 69 ---------------------- tauri/src-tauri/gen/Assets.car | Bin 3847048 -> 3847048 bytes 3 files changed, 72 deletions(-) delete mode 100644 app/src/components/UpdateNotification.tsx diff --git a/app/src/App.tsx b/app/src/App.tsx index d38c4109..d76f7655 100644 --- a/app/src/App.tsx +++ b/app/src/App.tsx @@ -10,7 +10,6 @@ import { UpdateStatus } from '@/components/ServerSettings/UpdateStatus'; import ShinyText from '@/components/ShinyText'; import { Sidebar } from '@/components/Sidebar'; import { TitleBarDragRegion } from '@/components/TitleBarDragRegion'; -import { UpdateNotification } from '@/components/UpdateNotification'; import { Toaster } from '@/components/ui/toaster'; import { ProfileList } from '@/components/VoiceProfiles/ProfileList'; import { useModelDownloadToast } from '@/lib/hooks/useModelDownloadToast'; @@ -175,8 +174,6 @@ function App() {
- - {activeTab === 'settings' ? (
diff --git a/app/src/components/UpdateNotification.tsx b/app/src/components/UpdateNotification.tsx deleted file mode 100644 index e7acea55..00000000 --- a/app/src/components/UpdateNotification.tsx +++ /dev/null @@ -1,69 +0,0 @@ -import { useAutoUpdater } from '../hooks/useAutoUpdater'; -import { Button } from './ui/button'; -import { Card } from './ui/card'; -import { Progress } from './ui/progress'; - -export function UpdateNotification() { - const { status, checkForUpdates, downloadAndInstall } = useAutoUpdater(true); - - if (status.error) { - return null; - } - - if (!status.available && !status.checking) { - return null; - } - - if (status.checking) { - return ( - -
-
- Checking for updates... -
- - ); - } - - if (status.available) { - return ( - -
-
-

Update Available

-

- Version {status.version} is ready to install -

-
- - {status.downloading && ( -
-

Downloading update...

- -
- )} - - {status.installing && ( -
-

Installing update...

-

App will restart automatically

-
- )} - - {!status.downloading && !status.installing && ( -
- - -
- )} -
-
- ); - } - - return null; -} diff --git a/tauri/src-tauri/gen/Assets.car b/tauri/src-tauri/gen/Assets.car index 59f2c58afb043a8b40d5c80b5ec4fcec38f5450a..db1bac230a2c2bcbb656dd283089c4be47d6e1f5 100644 GIT binary patch delta 866 zcmZwGId2m|7zW^VjEQpxa6)1n;sEBJcuILIDY-<+Y3}v(lqaGt#`@9NNLR@09_3KJV--BuP?-HCTleScWB7JpI)< zUpuC?VO#fxUlbia*X`j2>Ra8a{5k!of6t}d=PYA6CoCvQq?MF-7B%r%QMf{LX2N)y zD?{k`Q#AL^OBTJ{fA#Xk@m}-Y$n{6A0&`G>D^P>0Fkg;bJ+GynNly*sger-^XcWmX zL1TIC#ahS zy$1bh;ApM0NNnac;hYLpL=}DZpOXu&Lzo7QVtu=sS|eS~xhE`V1;HjF z$zsfir91{@V(@%6C@AI`p9F37j}Ggw0E@5$%di5gum90W*E!x~AVzT#JyL%l%VOcK358S6Ic7RJ4Q<7cRi^2eux H5A%Nktt95R delta 866 zcmZwGJx^3Y6b9hCtjO|>3J5DGsQ5iF-!q5i?wva`p|qs5von?!7A6);ONgEJBsL}# zOX)x04_Mf_F~*<`tuI-q)|)&zIn8_SoVj=J$Ir$dd^y=zoi2)E3MOF!W?=@#p>_0U z<79T9j~<+w&cO@2cJLLIqrS5%jc-Sv?B9{H&Qa?S6N}n%rkxgyY!z6gC^)Tjs#Ic1 zTEiJXe+-XaCJ}1qH($Scxxe0i-=}V$8ZZJ)xB{ba6~=mfYNgRq`b<(8$wD@f=`0)z z(pXk|sgxn&F`D5y7)WX`XQj7SwmvjVTbX21t(nwZGVK#y*t^Vx^*L#id{%lmNGL7n zGU!d+T4imXk0{Cy^QDs$$+Nc`e{v#di?|5sw`Bp3zh53$OVFdLQb-pO<+@QB>7k%fVe~!A;`}KMI G