From 6f05ac6bf0daff9e017c7c8a824b36c2ad04e22f Mon Sep 17 00:00:00 2001 From: comp500 Date: Fri, 23 Jun 2023 17:58:16 +0100 Subject: [PATCH] Fix CLI updates being cancelled when there is launcher metadata to update --- .../kotlin/link/infra/packwiz/installer/ui/IUserInterface.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/link/infra/packwiz/installer/ui/IUserInterface.kt b/src/main/kotlin/link/infra/packwiz/installer/ui/IUserInterface.kt index 525e247..cffcce8 100644 --- a/src/main/kotlin/link/infra/packwiz/installer/ui/IUserInterface.kt +++ b/src/main/kotlin/link/infra/packwiz/installer/ui/IUserInterface.kt @@ -23,7 +23,10 @@ interface IUserInterface { fun showCancellationDialog(): CancellationResult = CancellationResult.QUIT - fun showUpdateConfirmationDialog(oldVersions: List>, newVersions: List>): UpdateConfirmationResult = UpdateConfirmationResult.CANCELLED + fun showUpdateConfirmationDialog(oldVersions: List>, newVersions: List>): UpdateConfirmationResult { + // Always update metadata when using the CLI + return UpdateConfirmationResult.UPDATE + } fun awaitOptionalButton(showCancel: Boolean, timeout: Long)