Skip to content

Commit

Permalink
Add an extra version support check
Browse files Browse the repository at this point in the history
  • Loading branch information
alfiecg24 committed Apr 6, 2024
1 parent c722101 commit d683708
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions TrollInstallerX/UI/MainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,14 @@ struct MainView: View {
}
.onChange(of: isInstalling) { _ in
Task {
if device.supportsDirectInstall {
installedSuccessfully = await doDirectInstall(device)
} else {
installedSuccessfully = await doIndirectInstall(device)
if device.isSupported {
if device.supportsDirectInstall {
installedSuccessfully = await doDirectInstall(device)
} else {
installedSuccessfully = await doIndirectInstall(device)
}
installationFinished = true
}
installationFinished = true
UINotificationFeedbackGenerator().notificationOccurred(installedSuccessfully ? .success : .error)
}
}
Expand Down

0 comments on commit d683708

Please sign in to comment.