diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 5a880c1..6bc5468 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -1,9 +1,8 @@ // Prevents additional console window on Windows in release, DO NOT REMOVE!! #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] -use std::collections::HashSet; - use id3::{Tag, TagLike}; use serde::Serialize; +use std::collections::HashSet; use walkdir::WalkDir; #[derive(Debug, Serialize, PartialEq, Eq, Hash)] @@ -41,6 +40,9 @@ async fn get_local_albums(dirpath: String) -> Result, String> { } fn main() { + // https://github.com/tauri-apps/tauri/issues/5143#issuecomment-1311815517 + std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1"); + tauri::Builder::default() .invoke_handler(tauri::generate_handler![get_local_albums]) .run(tauri::generate_context!())