changes after core update
This commit is contained in:
@@ -3,8 +3,8 @@ use std::sync::Mutex;
|
||||
|
||||
use crate::models::*;
|
||||
use crate::VpnInterface;
|
||||
use netrunner_client::session::SessionManager;
|
||||
use netrunner_client::Session;
|
||||
use netrunner_client::SessionManager;
|
||||
use serde::de::DeserializeOwned;
|
||||
// ВАЖНО: Добавляем Emitter для возможности вызова .emit()
|
||||
use tauri::{plugin::PluginApi, AppHandle, Emitter, Runtime};
|
||||
@@ -36,7 +36,7 @@ impl<R: Runtime> VpnInterface<R> for Vpn<R> {
|
||||
);
|
||||
|
||||
// Запуск сессии (здесь может быть паника, если нет прав админа!)
|
||||
let session = SessionManager.start_desktop(format!("{}:{}", ip, port));
|
||||
let session = SessionManager.spawn_session(format!("{}:{}", ip, port), None, ".".into());
|
||||
|
||||
// Сохраняем сессию
|
||||
let mut lock = self.active_session.lock().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user