Skip to content

Commit

Permalink
fix: not changing language parser when language is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
BrewingWeasel committed Jul 26, 2024
1 parent 79c7521 commit 45a8853
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ async fn get_language(state: State<'_, SakinyjeState>) -> Result<Option<String>,
#[tauri::command]
async fn set_language(state: State<'_, SakinyjeState>, language: String) -> Result<(), String> {
let mut state = state.0.lock().await;
state.language_parser = None;
state.current_language = Some(language);
Ok(())
}
Expand Down

0 comments on commit 45a8853

Please sign in to comment.