Commit 6d0de5d1 authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko

savestates-list: Load on pressing Enter

Pressing Enter on a row which is already selected should load its
savestate.
parent 4f83bde6
......@@ -275,6 +275,11 @@ private class Games.SavestatesList : Gtk.Box {
var savestate_row = row as SavestateListBoxRow;
var savestate = savestate_row.savestate;
if (savestate == state.selected_savestate) {
on_load_clicked ();
return;
}
runner.preview_savestate (savestate);
state.selected_savestate = savestate;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment