mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-11-22 04:46:08 +03:00
0.5.1
- updated core library; now you can delete voice packages from settings
This commit is contained in:
parent
2f0862946f
commit
1aa144bf37
3 changed files with 17 additions and 4 deletions
|
@ -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
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue