From 65e1a4379c73b71a1be8aeb33907a22ec3c6ccff Mon Sep 17 00:00:00 2001 From: Jakub Szczyrk Date: Fri, 13 Aug 2021 13:36:35 +0200 Subject: [PATCH] State "waiting for user decision" after automatically install --- Assets/PatchKit Patcher/Scripts/Patcher.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/PatchKit Patcher/Scripts/Patcher.cs b/Assets/PatchKit Patcher/Scripts/Patcher.cs index bb25c8b0..5085b8bf 100644 --- a/Assets/PatchKit Patcher/Scripts/Patcher.cs +++ b/Assets/PatchKit Patcher/Scripts/Patcher.cs @@ -636,10 +636,6 @@ private void ThreadWaitForUserDecision(CancellationToken cancellationToken) { try { - DebugLogger.Log("Waiting for user decision..."); - - _state.Value = PatcherState.WaitingForUserDecision; - bool isInstalled = _app.IsFullyInstalled(); DebugLogger.LogVariable(isInstalled, "isInstalled"); @@ -682,6 +678,10 @@ private void ThreadWaitForUserDecision(CancellationToken cancellationToken) _userDecision = UserDecision.StartAppAutomatically; return; } + + DebugLogger.Log("Waiting for user decision..."); + + _state.Value = PatcherState.WaitingForUserDecision; _canRepairApp.Value = canRepairApp; _canInstallApp.Value = canInstallApp;