Skip to content

Commit 242c1b5

Browse files
committed
fix: patch enabled is null
1 parent cc9c018 commit 242c1b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/c#/GeneralUpdate.Core/GeneralUpdateBootstrap.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ public GeneralUpdateBootstrap()
5353
ReportUrl = processInfo.ReportUrl,
5454
BackupDirectory = processInfo.BackupDirectory,
5555
Scheme = processInfo.Scheme,
56-
Token = processInfo.Token
56+
Token = processInfo.Token,
57+
DriveEnabled = GetOption(UpdateOption.Drive) ?? false,
58+
PatchEnabled = GetOption(UpdateOption.Patch) ?? true
5759
};
5860
}
5961

0 commit comments

Comments
 (0)