mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-06-01 07:48:24 -04:00
SwiftFormat andOperator
This commit is contained in:
parent
c75d1007ee
commit
da8eeb0f29
4 changed files with 6 additions and 6 deletions
|
@ -402,7 +402,7 @@ class TaskManager: ObservableObject {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
if diskImageSign && !diskImageSigningIdentity.isEmpty && diskImageSigningIdentity != "-" {
|
if diskImageSign, !diskImageSigningIdentity.isEmpty, diskImageSigningIdentity != "-" {
|
||||||
tasks += [
|
tasks += [
|
||||||
MistTask(type: .codesign, description: "Disk Image") {
|
MistTask(type: .codesign, description: "Disk Image") {
|
||||||
try await Codesigner.sign(temporaryImageURL, identity: diskImageSigningIdentity)
|
try await Codesigner.sign(temporaryImageURL, identity: diskImageSigningIdentity)
|
||||||
|
|
|
@ -64,11 +64,11 @@ struct ActivityView: View {
|
||||||
ForEach(taskGroup.tasks.indices, id: \.self) { index in
|
ForEach(taskGroup.tasks.indices, id: \.self) { index in
|
||||||
VStack {
|
VStack {
|
||||||
ActivityRowView(state: taskGroup.tasks[index].state, description: taskGroup.tasks[index].currentDescription, degrees: degrees)
|
ActivityRowView(state: taskGroup.tasks[index].state, description: taskGroup.tasks[index].currentDescription, degrees: degrees)
|
||||||
if taskGroup.tasks[index].type == .download && taskGroup.tasks[index].state != .pending,
|
if taskGroup.tasks[index].type == .download, taskGroup.tasks[index].state != .pending,
|
||||||
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 {
|
if venturaOrOlder, index != taskGroup.tasks.count {
|
||||||
Divider()
|
Divider()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,11 +73,11 @@ struct InstallerExportView: View {
|
||||||
private func updateExports() {
|
private func updateExports() {
|
||||||
var exports: [InstallerExportType] = []
|
var exports: [InstallerExportType] = []
|
||||||
|
|
||||||
if !isoCompatible && exportISO {
|
if !isoCompatible, exportISO {
|
||||||
exportISO = false
|
exportISO = false
|
||||||
}
|
}
|
||||||
|
|
||||||
if !exportApplication && !exportDiskImage && !exportISO && !exportPackage {
|
if !exportApplication, !exportDiskImage, !exportISO, !exportPackage {
|
||||||
exportApplication = true
|
exportApplication = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -256,7 +256,7 @@ struct RefreshView: View {
|
||||||
guard let name: String = nameFromDistribution(string),
|
guard let name: String = nameFromDistribution(string),
|
||||||
let version: String = versionFromDistribution(string),
|
let version: String = versionFromDistribution(string),
|
||||||
let build: String = buildFromDistribution(string),
|
let build: String = buildFromDistribution(string),
|
||||||
!name.isEmpty && !version.isEmpty && !build.isEmpty else {
|
!name.isEmpty, !version.isEmpty, !build.isEmpty else {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue