feat: use tauri-plugin-persisted-scope

This commit is contained in:
huzibaca
2024-10-30 16:37:47 +08:00
parent 4213a5fad1
commit c5916cf5ec
5 changed files with 39 additions and 103 deletions

View File

@@ -122,14 +122,6 @@ pub struct IVerge {
/// 0: 不清理; 1: 7天; 2: 30天; 3: 90天
pub auto_log_clean: Option<i32>,
/// window size and position
#[serde(skip_serializing_if = "Option::is_none")]
pub window_size_position: Option<Vec<f64>>,
/// window size and position
#[serde(skip_serializing_if = "Option::is_none")]
pub window_is_maximized: Option<bool>,
/// 是否启用随机端口
pub enable_random_port: Option<bool>,
@@ -312,8 +304,6 @@ impl IVerge {
patch!(proxy_layout_column);
patch!(test_list);
patch!(auto_log_clean);
patch!(window_size_position);
patch!(window_is_maximized);
}
/// 在初始化前尝试拿到单例端口的值