- updated core library;
  now you can delete voice packages from settings
This commit is contained in:
Observer KRypt0n_ 2022-07-30 19:17:38 +02:00
parent 2f0862946f
commit 1aa144bf37
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
3 changed files with 17 additions and 4 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "anime-game-launcher"
version = "0.5.0"
version = "0.5.1"
description = "Anime Game launcher"
authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"]
license = "GPL-3.0"

@ -1 +1 @@
Subproject commit 33893a336d4051e14ce6ed1da81a18910f0a82b0
Subproject commit cc93b435dfa72de188168354395c36b60708fc31

View file

@ -329,8 +329,21 @@ impl App {
let component = this.widgets.voieover_components[*i].clone();
if component.is_downloaded(&config.game.path) {
// TODO: VoicePackage::delete()
todo!();
component.button.set_sensitive(false);
let this = this.clone();
std::thread::spawn(move || {
if let Err(err) = component.package.delete_in(&config.game.path) {
this.update(Actions::ToastError(Rc::new((
String::from("Failed to delete voiceover"), err
)))).unwrap();
}
component.button.set_sensitive(true);
component.update_state(&config.game.path);
});
}
else {