mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-30 23:15:18 -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 {
|
private var bootableInstaller: Bool {
|
||||||
taskManager.taskGroups.map { $0.section }.contains(.bootableInstaller)
|
taskManager.taskGroups.map { $0.section }.contains(.bootableInstaller)
|
||||||
}
|
}
|
||||||
|
private var venturaOrOlder: Bool {
|
||||||
|
!ProcessInfo().isOperatingSystemAtLeast(OperatingSystemVersion(majorVersion: 14, minorVersion: 0, patchVersion: 0))
|
||||||
|
}
|
||||||
private var buttonText: String {
|
private var buttonText: String {
|
||||||
switch taskManager.currentState {
|
switch taskManager.currentState {
|
||||||
case .pending, .inProgress:
|
case .pending, .inProgress:
|
||||||
|
@ -63,6 +66,9 @@ struct ActivityView: View {
|
||||||
let size: UInt64 = taskGroup.tasks[index].downloadSize {
|
let size: UInt64 = taskGroup.tasks[index].downloadSize {
|
||||||
ActivityProgressView(state: taskGroup.tasks[index].state, value: value, size: size)
|
ActivityProgressView(state: taskGroup.tasks[index].state, value: value, size: size)
|
||||||
}
|
}
|
||||||
|
if venturaOrOlder && index != taskGroup.tasks.count {
|
||||||
|
Divider()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.id("\(taskGroup.section.id).\(index)")
|
.id("\(taskGroup.section.id).\(index)")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue