From a8fcd85d8661ca3c0ab3b9fc660f23756301dcf4 Mon Sep 17 00:00:00 2001 From: Sean Boult <996134+Hacksore@users.noreply.github.com> Date: Sat, 31 Aug 2024 13:38:11 -0500 Subject: [PATCH] Fixed socket --- apps/desktop/src-tauri/src/commands.rs | 1 + apps/desktop/src/App.tsx | 2 ++ 2 files changed, 3 insertions(+) diff --git a/apps/desktop/src-tauri/src/commands.rs b/apps/desktop/src-tauri/src/commands.rs index 7e8dc6c9..8c51745d 100644 --- a/apps/desktop/src-tauri/src/commands.rs +++ b/apps/desktop/src-tauri/src/commands.rs @@ -34,6 +34,7 @@ pub fn zoom_window(window: tauri::Window, scale_factor: f64) { }); } +#[tauri::command] pub fn open_settings(window: WebviewWindow, update: bool) { let app = window.app_handle(); let settings_windows = app.get_webview_window(SETTINGS_WINDOW_NAME); diff --git a/apps/desktop/src/App.tsx b/apps/desktop/src/App.tsx index 402c50dd..df78237f 100644 --- a/apps/desktop/src/App.tsx +++ b/apps/desktop/src/App.tsx @@ -12,9 +12,11 @@ import { useUpdate } from "./hooks/use-update"; import { useAppStore } from "./store"; import { Toaster } from "./components/ui/toaster"; import { useEffect } from "react"; +import { useSocket } from "./rpc/manager"; function App() { useDisableWebFeatures(); + useSocket(); useEffect(() => { const styleForLog = "font-size: 20px; color: #00dffd";