Skip to content

Commit

Permalink
rename sponsor flag to requires_license (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpannella authored Sep 18, 2023
1 parent 21de9b1 commit 2f39bd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public async Task RunUpdates(string? id = null)
continue;
}

if (core.sponsor_only && !_jtBeta) {
if (core.requires_license && !_jtBeta) {
continue; //skip if you don't have the key
}

Expand Down
2 changes: 1 addition & 1 deletion src/models/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class Core : Base
public string? date_release { get; set; }
public string? version { get; set; }

public bool sponsor_only { get; set; } = false;
public bool requires_license { get; set; } = false;

private const string ZIP_FILE_NAME = "core.zip";
public bool downloadAssets { get; set; } = Factory.GetGlobals().SettingsManager.GetConfig().download_assets;
Expand Down

0 comments on commit 2f39bd6

Please sign in to comment.