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



commit e5252471cc985391208b5e7b51078d16e623d2e8
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]