mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-15 20:10:30 +00:00
fix ddi #2
This commit is contained in:
parent
9433d9bd3a
commit
dbf6cf0991
1 changed files with 12 additions and 11 deletions
|
|
@ -181,28 +181,29 @@ struct SettingsView: View {
|
|||
.foregroundColor(.primary)
|
||||
.padding(.bottom, 4)
|
||||
|
||||
// Status indicator with icon
|
||||
HStack(spacing: 12) {
|
||||
Image(systemName: mounted || (mountProg.mountProgress == 100) ? "checkmark.circle.fill" : "xmark.circle.fill")
|
||||
.font(.system(size: 24))
|
||||
.foregroundColor(mounted || (mountProg.mountProgress == 100) ? .green : .red)
|
||||
|
||||
VStack(alignment: .leading, spacing: 4) {
|
||||
Text(mounted || (mountProg.mountProgress == 100) ? "Successfully Mounted" : "Not Mounted")
|
||||
.font(.system(.body, design: .rounded))
|
||||
.fontWeight(.medium)
|
||||
|
||||
if !(mounted || (mountProg.mountProgress == 100)) {
|
||||
Text("Import pairing file and restart the app to mount DDI")
|
||||
.font(.system(.caption, design: .rounded))
|
||||
.foregroundColor(.secondary)
|
||||
}
|
||||
}
|
||||
Text(mounted || (mountProg.mountProgress == 100) ? "Successfully Mounted" : "Not Mounted")
|
||||
.font(.system(.body, design: .rounded))
|
||||
.fontWeight(.medium)
|
||||
}
|
||||
.padding()
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.background(Color(UIColor.tertiarySystemBackground))
|
||||
.cornerRadius(12)
|
||||
|
||||
// Helper text shown separately below the status indicator
|
||||
if !(mounted || (mountProg.mountProgress == 100)) {
|
||||
Text("Import pairing file and restart the app to mount DDI")
|
||||
.font(.system(.caption, design: .rounded))
|
||||
.foregroundColor(.secondary)
|
||||
.padding(.horizontal, 4)
|
||||
}
|
||||
|
||||
// Only show progress if actively mounting
|
||||
if mountProg.mountProgress > 0 && mountProg.mountProgress < 100 && !mounted {
|
||||
VStack(spacing: 8) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue