[gnome-games/wip/exalm/runner-refactor: 56/56] retro-runner: Explicitly pause/resume when restarting



commit df30a29835306a016ef81f3a1d7940769b4a6d67
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sat Mar 7 17:11:59 2020 +0500

    retro-runner: Explicitly pause/resume when restarting

 src/retro/retro-runner.vala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index 0de73171..9aba63e0 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -243,12 +243,14 @@ public class Games.RetroRunner : Object, Runner {
        }
 
        public void restart () throws Error {
-               current_state_pixbuf = view.get_pixbuf ();
+               pause ();
 
                var savestate = try_create_savestate (true);
                reset_metadata (savestate);
 
                core.reset ();
+
+               resume ();
        }
 
        public void resume () {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]