[gnome-games/wip/exalm/savestates: 14/20] savestate: Erase name when setting is_automatic
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/savestates: 14/20] savestate: Erase name when setting is_automatic
- Date: Sat, 25 Jan 2020 20:02:24 +0000 (UTC)
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]