feat: added confirm dialog for new chat
This commit is contained in:
@@ -16,6 +16,7 @@ pub struct AppConfig {
|
||||
pub struct AppState {
|
||||
grpc_client: Mutex<AiDaemonClient<tonic::transport::Channel>>,
|
||||
config: Mutex<AppConfig>,
|
||||
current_chat_id: Mutex<i32>,
|
||||
}
|
||||
|
||||
#[tokio::main]
|
||||
@@ -27,6 +28,7 @@ async fn main() {
|
||||
.manage(AppState {
|
||||
grpc_client: Mutex::new(client),
|
||||
config: Mutex::new(AppConfig { dark_mode: true }),
|
||||
current_chat_id: Mutex::new(-1),
|
||||
})
|
||||
.plugin(tauri_plugin_global_shortcut::Builder::new().build())
|
||||
.invoke_handler(tauri::generate_handler![
|
||||
|
||||
Reference in New Issue
Block a user