[gnome-games/wip/exalm/savestates: 16/22] savestate: Erase name when setting is_automatic



commit eeaa0cbe08b2fec8944dac6531229a78b89f704b
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sun Jan 26 00:42:13 2020 +0500

    savestate: Erase name when setting is_automatic

 src/core/savestate.vala | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/core/savestate.vala b/src/core/savestate.vala
index 5138fcb2..2d5fa161 100644
--- a/src/core/savestate.vala
+++ b/src/core/savestate.vala
@@ -147,6 +147,7 @@ public class Games.Savestate : Object {
        // Set the metadata for an automatic savestate
        public void set_metadata_automatic (DateTime creation_date, string core, double aspect_ratio) throws 
Error {
                is_automatic = true;
+               this.name = null;
                this.creation_date = creation_date;
                this.core = core;
                this.screenshot_aspect_ratio = aspect_ratio;


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