This commit is contained in:
SpikeHD
2023-03-23 08:53:42 -07:00
parent 01d12178ba
commit 90b86b42d0
7 changed files with 11 additions and 14 deletions

View File

@@ -9,7 +9,7 @@ pub async fn get_lang(window: tauri::Window, lang: String) -> String {
let lang_path: PathBuf = [&install_location(), "lang", &format!("{}.json", lang)]
.iter()
.collect();
match std::fs::read_to_string(&lang_path) {
match std::fs::read_to_string(lang_path) {
Ok(x) => x,
Err(e) => {
emit_lang_err(window, format!("Failed to read language file: {}", e));