mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2025-10-30 07:01:10 +00:00
ui: fix crash when no profile is created and typing in the exe entry
This commit is contained in:
parent
39665a90d2
commit
31b3f770f5
1 changed files with 6 additions and 3 deletions
|
|
@ -35,9 +35,12 @@ pub fn register_signals(sidebar_: pane::PaneSidebar, main: &pane::PaneMain) {
|
|||
}
|
||||
|
||||
// rename list entry
|
||||
let row = sidebar.imp().profiles.selected_row()
|
||||
.and_downcast::<entry::Entry>().unwrap();
|
||||
row.set_exe(exe.clone());
|
||||
let row_option = sidebar.imp().profiles.selected_row()
|
||||
.and_downcast::<entry::Entry>();
|
||||
|
||||
if let Some(row) = row_option {
|
||||
row.set_exe(exe.clone());
|
||||
}
|
||||
|
||||
// update the game configuration
|
||||
update_game(|conf| {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue