fix: 🐛 blank screen on linux

This commit is contained in:
Tomáš Mládek 2023-09-30 12:29:08 +02:00
parent d8206b00c4
commit 5978ebb9b0

View file

@ -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<Vec<Album>, 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!())