fix: fixed mistake in the previous commit

I'm such a clown lol
This commit is contained in:
Observer KRypt0n_ 2023-02-28 23:04:25 +02:00
parent a3aad7a2f4
commit 7d080fcdf4
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2

View file

@ -626,7 +626,7 @@ impl SimpleAsyncComponent for GeneralApp {
let package = VoicePackage::with_locale(package.locale).unwrap();
if !package.is_installed_in(&config.game.path) {
if package.is_installed_in(&config.game.path) {
std::thread::spawn(move || {
if let Err(err) = package.delete_in(&config.game.path) {
tracing::error!("Failed to delete voice package: {:?}", package.locale());