From 024516d4abce15d632d00b333d0ff55aba87edcb Mon Sep 17 00:00:00 2001 From: SpikeHD <25207995+SpikeHD@users.noreply.github.com> Date: Tue, 17 Dec 2024 01:17:44 -0800 Subject: [PATCH] fix: proper win7 compat --- src-tauri/Cargo.lock | 12 ++++++++++++ src-tauri/Cargo.toml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 7d566375..ac9aa6d4 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -4929,6 +4929,8 @@ dependencies = [ "thiserror 2.0.7", "time", "url", + "win7-notifications", + "windows-version", ] [[package]] @@ -5977,6 +5979,16 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7219d36b6eac893fa81e84ebe06485e7dcbb616177469b142df14f1f4deb1311" +[[package]] +name = "win7-notifications" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b4745047a00800bd8f2b8fb4b0eb6f7d96822084127f0ff7d68d07f692fe38" +dependencies = [ + "once_cell", + "windows-sys 0.59.0", +] + [[package]] name = "winapi" version = "0.3.9" diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index e5bcc3cf..0756c1bf 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -37,7 +37,7 @@ tauri-plugin-single-instance = "2.0" tauri-plugin-process = "2.0" tauri-plugin-autostart = "2.0" tauri-plugin-http = "2.0" -tauri-plugin-notification = "2.0" +tauri-plugin-notification = { version = "2.0", features = ["windows7-compat"] } # window blur window-vibrancy = { version = "0.5.0", optional = true }