Skip to content

Commit

Permalink
Omit auto_installed from registry.json when false
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed May 6, 2019
1 parent f8f8af9 commit 6b1d95d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Core/Registry/InstalledModule.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.IO;
using System.Security.Cryptography;
Expand Down Expand Up @@ -83,7 +84,9 @@ public class InstalledModule

[JsonProperty] private CkanModule source_module;

[JsonProperty] private bool auto_installed;
[JsonProperty(DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[DefaultValue(false)]
private bool auto_installed;

// TODO: Our InstalledModuleFile already knows its path, so this could just
// be a list. However we've left it as a dictionary for now to maintain
Expand Down

0 comments on commit 6b1d95d

Please sign in to comment.