mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-04-19 13:06:30 +02:00
Fix CLI updates being cancelled when there is launcher metadata to update
This commit is contained in:
parent
7b6daaf7e5
commit
6f05ac6bf0
@ -23,7 +23,10 @@ interface IUserInterface {
|
|||||||
|
|
||||||
fun showCancellationDialog(): CancellationResult = CancellationResult.QUIT
|
fun showCancellationDialog(): CancellationResult = CancellationResult.QUIT
|
||||||
|
|
||||||
fun showUpdateConfirmationDialog(oldVersions: List<Pair<String, String?>>, newVersions: List<Pair<String, String?>>): UpdateConfirmationResult = UpdateConfirmationResult.CANCELLED
|
fun showUpdateConfirmationDialog(oldVersions: List<Pair<String, String?>>, newVersions: List<Pair<String, String?>>): UpdateConfirmationResult {
|
||||||
|
// Always update metadata when using the CLI
|
||||||
|
return UpdateConfirmationResult.UPDATE
|
||||||
|
}
|
||||||
|
|
||||||
fun awaitOptionalButton(showCancel: Boolean, timeout: Long)
|
fun awaitOptionalButton(showCancel: Boolean, timeout: Long)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user