mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-27 21:44:26 -04:00
Fix activity view dividers on macOS Ventura + Monterey
This commit is contained in:
parent
94f45e0d00
commit
273bd7692c
1 changed files with 6 additions and 0 deletions
|
@ -38,6 +38,9 @@ struct ActivityView: View {
|
|||
private var bootableInstaller: Bool {
|
||||
taskManager.taskGroups.map { $0.section }.contains(.bootableInstaller)
|
||||
}
|
||||
private var venturaOrOlder: Bool {
|
||||
!ProcessInfo().isOperatingSystemAtLeast(OperatingSystemVersion(majorVersion: 14, minorVersion: 0, patchVersion: 0))
|
||||
}
|
||||
private var buttonText: String {
|
||||
switch taskManager.currentState {
|
||||
case .pending, .inProgress:
|
||||
|
@ -63,6 +66,9 @@ struct ActivityView: View {
|
|||
let size: UInt64 = taskGroup.tasks[index].downloadSize {
|
||||
ActivityProgressView(state: taskGroup.tasks[index].state, value: value, size: size)
|
||||
}
|
||||
if venturaOrOlder && index != taskGroup.tasks.count {
|
||||
Divider()
|
||||
}
|
||||
}
|
||||
.id("\(taskGroup.section.id).\(index)")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue