[gnome-games] display-view: Don't preview already previewed savestate
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] display-view: Don't preview already previewed savestate
- Date: Fri, 20 Sep 2019 16:52:34 +0000 (UTC)
commit 7145b7123e7d0678c567ea0bca506be8b9c1aaa9
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Sep 20 21:50:39 2019 +0500
display-view: Don't preview already previewed savestate
In try_run_with_cancellable(), the latest savestate is already previewed,
don't do it again.
src/ui/display-view.vala | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/ui/display-view.vala b/src/ui/display-view.vala
index a65f909e..eef4faf9 100644
--- a/src/ui/display-view.vala
+++ b/src/ui/display-view.vala
@@ -350,15 +350,10 @@ private class Games.DisplayView : Object, UiView {
return (Gtk.ResponseType) response;
}
- private bool try_run_with_cancellable (Runner runner, bool use_latest_savestate, Cancellable
cancellable) {
+ private bool try_run_with_cancellable (Runner runner, bool resume, Cancellable cancellable) {
try {
- if (use_latest_savestate) {
- var savestates = box.runner.get_savestates ();
- var latest_savestate = savestates[0];
-
- box.runner.preview_savestate (latest_savestate);
+ if (resume)
box.runner.load_previewed_savestate ();
- }
else
runner.start ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]