Drop Tauri Plugin Window State (#2271)

do the thing
This commit is contained in:
Oscar Beaumont 2024-04-04 01:58:43 +08:00 committed by GitHub
parent e34f37ddf9
commit 232cbb33c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 33 deletions

29
Cargo.lock generated
View file

@ -1106,15 +1106,6 @@ dependencies = [
"num-traits",
]
[[package]]
name = "bincode"
version = "1.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
dependencies = [
"serde",
]
[[package]]
name = "bincode"
version = "2.0.0-rc.3"
@ -8295,7 +8286,7 @@ dependencies = [
"aes-gcm-siv",
"argon2",
"balloon-hash",
"bincode 2.0.0-rc.3",
"bincode",
"blake3",
"chacha20poly1305",
"cmov",
@ -8357,7 +8348,6 @@ dependencies = [
"specta",
"tauri",
"tauri-build",
"tauri-plugin-window-state",
"tauri-specta",
"thiserror",
"tokio",
@ -8444,7 +8434,7 @@ dependencies = [
name = "sd-images"
version = "0.0.0"
dependencies = [
"bincode 2.0.0-rc.3",
"bincode",
"image",
"libheif-rs",
"libheif-sys",
@ -9817,21 +9807,6 @@ dependencies = [
"tauri-utils 1.5.1",
]
[[package]]
name = "tauri-plugin-window-state"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa47eaa4047a7b51064caff32f0c6282e2c5adc6ceacdd493ecf1b01fa4b0eaa"
dependencies = [
"bincode 1.3.3",
"bitflags 2.4.1",
"log",
"serde",
"serde_json",
"tauri",
"thiserror",
]
[[package]]
name = "tauri-runtime"
version = "0.14.1"

View file

@ -9,10 +9,7 @@ repository = { workspace = true }
edition = { workspace = true }
[dependencies]
sd-core = { path = "../../../core", features = [
"ffmpeg",
"heif",
] }
sd-core = { path = "../../../core", features = ["ffmpeg", "heif"] }
sd-fda = { path = "../../../crates/fda" }
sd-prisma = { path = "../../../crates/prisma" }
@ -46,7 +43,6 @@ tauri = { version = "=1.5.3", features = [
"tracing",
] }
directories = "5.0.1"
tauri-plugin-window-state = "0.1.1"
[target.'cfg(target_os = "linux")'.dependencies]
sd-desktop-linux = { path = "../crates/linux" }

View file

@ -241,7 +241,7 @@ async fn main() -> tauri::Result<()> {
let file_drop_status = Arc::new(Mutex::new(DragAndDropState::default()));
let app = app
.plugin(updater::plugin())
.plugin(tauri_plugin_window_state::Builder::default().build())
// .plugin(tauri_plugin_window_state::Builder::default().build())
.plugin(specta_builder)
.setup(move |app| {
let app = app.handle();