fix: 🐛 blank screen on linux
This commit is contained in:
parent
d8206b00c4
commit
5978ebb9b0
1 changed files with 4 additions and 2 deletions
|
@ -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!())
|
||||
|
|
Loading…
Reference in a new issue