From cdb93543baee4439b873c546a25e97151aeb0e3d Mon Sep 17 00:00:00 2001 From: jack Date: Fri, 4 Jul 2025 20:10:22 +0200 Subject: [PATCH] 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) --- bitchat/Views/AppInfoView.swift | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/bitchat/Views/AppInfoView.swift b/bitchat/Views/AppInfoView.swift index 54254672..f967bbb8 100644 --- a/bitchat/Views/AppInfoView.swift +++ b/bitchat/Views/AppInfoView.swift @@ -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()