mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-02-03 14:30:50 +03:00
fix(ui): fixed check button style for newly made sessions
This commit is contained in:
parent
4db774eb6d
commit
85fd0aed14
1 changed files with 7 additions and 1 deletions
|
@ -207,10 +207,14 @@ impl SimpleAsyncComponent for GamePage {
|
|||
|
||||
match Sessions::update(name.clone(), config.get_wine_prefix_path()) {
|
||||
Ok(()) => {
|
||||
let check_button = gtk::CheckButton::new();
|
||||
|
||||
check_button.set_group(Some(&self.sessions_root_widget));
|
||||
|
||||
self.sessions.guard().push_back(GameSession {
|
||||
name,
|
||||
description: None,
|
||||
check_button: gtk::CheckButton::new()
|
||||
check_button
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -248,6 +252,8 @@ impl SimpleAsyncComponent for GamePage {
|
|||
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: select another available session?
|
||||
}
|
||||
|
||||
self.sessions.guard().remove(index.current_index());
|
||||
|
|
Loading…
Add table
Reference in a new issue