mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-02-16 15:22:01 +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]
|
[package]
|
||||||
name = "anime-game-launcher"
|
name = "anime-game-launcher"
|
||||||
version = "0.5.0"
|
version = "0.5.1"
|
||||||
description = "Anime Game launcher"
|
description = "Anime Game launcher"
|
||||||
authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"]
|
authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"]
|
||||||
license = "GPL-3.0"
|
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();
|
let component = this.widgets.voieover_components[*i].clone();
|
||||||
|
|
||||||
if component.is_downloaded(&config.game.path) {
|
if component.is_downloaded(&config.game.path) {
|
||||||
// TODO: VoicePackage::delete()
|
component.button.set_sensitive(false);
|
||||||
todo!();
|
|
||||||
|
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 {
|
else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue