mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-24 23:45:18 +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)
|
||||
.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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -233,31 +231,6 @@ struct AppInfoView: View {
|
||||
.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
|
||||
HStack {
|
||||
Spacer()
|
||||
|
||||
Reference in New Issue
Block a user