fix(ui): fixed check button style for newly made sessions

This commit is contained in:
Observer KRypt0n_ 2023-06-12 15:44:57 +02:00
parent 4db774eb6d
commit 85fd0aed14
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2

View file

@ -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());