File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed
Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,6 @@ private struct SupportBundleView: View {
223223
224224struct SupportView : View {
225225 @Environment ( AppState . self) private var appState
226- @State private var showLog : Bool = false
227226
228227 var body : some View {
229228 Form {
@@ -274,17 +273,6 @@ struct SupportView: View {
274273 NavigationLink ( destination: TroubleshootingView ( userSettings: appState. userSettings) ) {
275274 Label ( " Troubleshooting options " , systemImage: " book.and.wrench " )
276275 }
277-
278- Button ( " View log messages " , systemImage: " heart.text.clipboard " ) {
279- showLog = true
280- } . sheet ( isPresented: $showLog) {
281- NavigationStack {
282- LogView ( )
283- }
284- }
285- #if os(macOS)
286- . buttonStyle( . link)
287- #endif
288276 }
289277 }
290278 #if os(macOS)
@@ -309,6 +297,7 @@ struct TroubleshootingView: View {
309297 @State private var showIgnoredDiscoveredReset = false
310298 @State private var showV1BackupRemoved = false
311299 @State private var showCacheCleared = false
300+ @State private var showLog = false
312301
313302 private static let formatter = ByteCountFormatter ( )
314303
@@ -342,6 +331,19 @@ struct TroubleshootingView: View {
342331 }
343332 }
344333 }
334+
335+ Section {
336+ Button ( " View log messages " , systemImage: " heart.text.clipboard " ) {
337+ showLog = true
338+ } . sheet ( isPresented: $showLog) {
339+ NavigationStack {
340+ LogView ( )
341+ }
342+ }
343+ #if os(macOS)
344+ . buttonStyle( . link)
345+ #endif
346+ }
345347
346348 Section {
347349 LabeledContent ( " Database type " ) {
You can’t perform that action at this time.
0 commit comments