Skip to content

Commit

Permalink
ImportStatus ui shows number of systems for conflict file, correct sy…
Browse files Browse the repository at this point in the history
…stem when identified, and "BIOS" for bios (since that was crashing for some reason)
  • Loading branch information
proskd committed Nov 11, 2024
1 parent 82db386 commit ab29bb1
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions PVUI/Sources/PVSwiftUI/Imports/ImportStatusView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,19 @@ struct ImportTaskRowView: View {
VStack(alignment: .leading) {
Text(item.url.lastPathComponent)
.font(.headline)
if let targetSystem = item.targetSystem() {
if item.fileType == .bios {
Text("BIOS")
.font(.subheadline)
.foregroundColor(item.status.color)
}
else if let targetSystem = item.targetSystem() {
Text(targetSystem.name)
.font(.subheadline)
.foregroundColor(item.status.color)
} else if !item.systems.isEmpty {
Text("\(item.systems.count) systems")
.font(.subheadline)
.foregroundColor(item.status.color)
}

}
Expand All @@ -77,7 +86,7 @@ struct ImportTaskRowView: View {
}

if (item.childQueueItems.count > 0) {
Text("\(item.childQueueItems.count) assoc. files")
Text("+\(item.childQueueItems.count) files")
.font(.subheadline)
.foregroundColor(item.status.color)
}
Expand Down

0 comments on commit ab29bb1

Please sign in to comment.