diff --git a/apps/desktop/src/App.tsx b/apps/desktop/src/App.tsx index aa2a9853c..51c710cf1 100644 --- a/apps/desktop/src/App.tsx +++ b/apps/desktop/src/App.tsx @@ -89,31 +89,6 @@ function Router() { ); } -export default function App() { - useCoreEvents(); - - useEffect(() => { - invoke('get_config').then((state) => useAppState.getState().update(state)); - invoke('get_mounts').then((locations) => - //@ts-expect-error - useLocationStore.getState().setLocations(locations) - ); - }, []); - - return ( - {}} - > - - - - - - ); -} - function ErrorFallback({ error, resetErrorBoundary }: FallbackProps) { return (
{ // process.exit(); // }); + +export default function App() { + useCoreEvents(); + + useEffect(() => { + invoke('get_config').then((state) => useAppState.getState().update(state)); + invoke('get_mounts').then((locations) => + //@ts-expect-error + useLocationStore.getState().setLocations(locations) + ); + }, []); + + return ( + {}} + > + + + + + + ); +}