mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 17:25:20 +00:00
Remove disk logging UI from iOS app info
- Remove Debug section from iOS AppInfoView - Keep Debug section for macOS only - Aligns UI with logging behavior (macOS only)
This commit is contained in:
@@ -125,14 +125,12 @@ struct AppInfoView: View {
|
|||||||
.foregroundColor(secondaryTextColor)
|
.foregroundColor(secondaryTextColor)
|
||||||
.textSelection(.enabled)
|
.textSelection(.enabled)
|
||||||
|
|
||||||
#if os(macOS)
|
|
||||||
Button("Open in Finder") {
|
Button("Open in Finder") {
|
||||||
NSWorkspace.shared.selectFile(LoggingService.shared.getLogFileURL().path, inFileViewerRootedAtPath: "")
|
NSWorkspace.shared.selectFile(LoggingService.shared.getLogFileURL().path, inFileViewerRootedAtPath: "")
|
||||||
}
|
}
|
||||||
.buttonStyle(.plain)
|
.buttonStyle(.plain)
|
||||||
.foregroundColor(.blue)
|
.foregroundColor(.blue)
|
||||||
.font(.system(size: 12, design: .monospaced))
|
.font(.system(size: 12, design: .monospaced))
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -233,31 +231,6 @@ struct AppInfoView: View {
|
|||||||
.foregroundColor(textColor)
|
.foregroundColor(textColor)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Debug Info
|
|
||||||
VStack(alignment: .leading, spacing: 16) {
|
|
||||||
SectionHeader("Debug")
|
|
||||||
|
|
||||||
VStack(alignment: .leading, spacing: 8) {
|
|
||||||
Text("Log Location:")
|
|
||||||
.font(.system(size: 14, weight: .semibold, design: .monospaced))
|
|
||||||
.foregroundColor(textColor)
|
|
||||||
|
|
||||||
Text(LoggingService.shared.getLogFileURL().path)
|
|
||||||
.font(.system(size: 12, design: .monospaced))
|
|
||||||
.foregroundColor(secondaryTextColor)
|
|
||||||
.textSelection(.enabled)
|
|
||||||
|
|
||||||
#if os(macOS)
|
|
||||||
Button("Open in Finder") {
|
|
||||||
NSWorkspace.shared.selectFile(LoggingService.shared.getLogFileURL().path, inFileViewerRootedAtPath: "")
|
|
||||||
}
|
|
||||||
.buttonStyle(.plain)
|
|
||||||
.foregroundColor(.blue)
|
|
||||||
.font(.system(size: 12, design: .monospaced))
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Version
|
// Version
|
||||||
HStack {
|
HStack {
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|||||||
Reference in New Issue
Block a user