diff --git a/CHANGELOG b/CHANGELOG index adea3dc833..a45d5d630a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,9 +1,14 @@ -## 0.0.15 (2023-03-14) +## 0.1.0 (2023-03-19) + +### BREAK: + +- 本次更新重写了设置模块,安装之后需要重新设置 ### New feature: -- 添加Apple silicon支持([`db1fa50`](https://github.com/Pylogmon/pot/commit/db1fa5038e8732455481574cce9a28c131cd55cd)) (by 派了个萌) +- 设置热重载([`a2b52cd`](https://github.com/Pylogmon/Pot/commit/a2b52cd1d471cc1f029289c852e044b267e1505c)) (by 派了个萌) ### Bugs fixed: -- 修复Linux下窗口位置偏移的问题([`eee4494`](https://github.com/Pylogmon/pot/commit/eee449474e060a85580ae9c4b5716f0ffce2860e)) (by 派了个萌) \ No newline at end of file +- 修复windows 高分屏窗口过小的问题([`d743b20`](https://github.com/Pylogmon/Pot/commit/d743b208d6624729e421aeec7f760feb570ee838)) (by 派了个萌) +- fix react warning([`922b267`](https://github.com/Pylogmon/Pot/commit/922b267123232681bb59b5c1170543f2f00416fc)) (by 派了个萌) \ No newline at end of file diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 450b7fa563..cbe35ebc2f 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -21,12 +21,14 @@ reqwest = "0.11.14" toml = "0.7.3" [target.'cfg(windows)'.dependencies] -window-shadows = "0.2" windows = {version="0.44.0",features= ["Win32_UI_WindowsAndMessaging", "Win32_Foundation","Win32_UI_HiDpi"] } enigo = {git = "https://github.com/enigo-rs/enigo"} cli-clipboard = "0.4.0" +window-shadows = "0.2" [target.'cfg(target_os = "macos")'.dependencies ] +enigo = {git = "https://github.com/enigo-rs/enigo"} +cli-clipboard = "0.4.0" window-shadows = "0.2" [features] diff --git a/src-tauri/src/config.rs b/src-tauri/src/config.rs index 3330f629fa..e8a58290bc 100644 --- a/src-tauri/src/config.rs +++ b/src-tauri/src/config.rs @@ -104,6 +104,5 @@ pub fn write_config(state: tauri::State) -> Result<(), String> { #[tauri::command] pub fn get_config_str(state: tauri::State) -> Table { - println!("{:?}", state.0.lock().unwrap().config_toml); return state.0.lock().unwrap().config_toml.clone(); } diff --git a/src-tauri/src/window.rs b/src-tauri/src/window.rs index d701d5ecc0..3b8c1db920 100644 --- a/src-tauri/src/window.rs +++ b/src-tauri/src/window.rs @@ -1,7 +1,9 @@ use crate::APP; +use tauri::Manager; +#[cfg(any(target_os = "linux", target_os = "windows"))] +use tauri::PhysicalPosition; #[cfg(any(target_os = "macos", target_os = "linux"))] use tauri::WindowEvent; -use tauri::{Manager, PhysicalPosition}; #[cfg(any(target_os = "macos", target_os = "windows"))] use window_shadows::set_shadow;