Skip to content

Commit 0ec9f17

Browse files
CopilotJusterZhu
andauthored
Restore regular latest-version skip check in silent update flow
Agent-Logs-Url: https://github.com/GeneralLibrary/GeneralUpdate/sessions/854ec71a-9f7e-484e-a37f-fbcf7e7d26c3 Co-authored-by: JusterZhu <11714536+JusterZhu@users.noreply.github.com>
1 parent 4049b2d commit 0ec9f17

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/c#/GeneralUpdate.ClientCore/GeneralClientBootstrap.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private async Task ExecuteWorkflowAsync()
155155

156156
//If the main program needs to be forced to update, the skip will not take effect.
157157
var isForcibly = CheckForcibly(mainResp.Body) || CheckForcibly(upgradeResp.Body);
158-
if (CanSkip(isForcibly, GetOption(UpdateOption.EnableSilentUpdate) ?? false)) return;
158+
if (CanSkip(isForcibly)) return;
159159

160160
//black list initialization.
161161
BlackListManager.Instance?.AddBlackFiles(_configInfo.BlackFiles);
@@ -329,9 +329,8 @@ private bool CheckForcibly(List<VersionInfo>? versions)
329329
/// User decides if update is required.
330330
/// </summary>
331331
/// <returns>is false to continue execution.</returns>
332-
private bool CanSkip(bool isForcibly, bool enableSilentUpdate)
332+
private bool CanSkip(bool isForcibly)
333333
{
334-
if (enableSilentUpdate) return false;
335334
if (isForcibly) return false;
336335
return _customSkipOption?.Invoke() == true;
337336
}

0 commit comments

Comments
 (0)