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()) {
|
match Sessions::update(name.clone(), config.get_wine_prefix_path()) {
|
||||||
Ok(()) => {
|
Ok(()) => {
|
||||||
|
let check_button = gtk::CheckButton::new();
|
||||||
|
|
||||||
|
check_button.set_group(Some(&self.sessions_root_widget));
|
||||||
|
|
||||||
self.sessions.guard().push_back(GameSession {
|
self.sessions.guard().push_back(GameSession {
|
||||||
name,
|
name,
|
||||||
description: None,
|
description: None,
|
||||||
check_button: gtk::CheckButton::new()
|
check_button
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -248,6 +252,8 @@ impl SimpleAsyncComponent for GamePage {
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: select another available session?
|
||||||
}
|
}
|
||||||
|
|
||||||
self.sessions.guard().remove(index.current_index());
|
self.sessions.guard().remove(index.current_index());
|
||||||
|
|
Loading…
Reference in a new issue