Skip to content

Commit e69726b

Browse files
committed
ui: move 'view log messages' button to troubleshooting page
Signed-off-by: Tommy van der Vorst <tommy@pixelspark.nl>
1 parent 932d158 commit e69726b

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

Sushitrain/SupportView.swift

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ private struct SupportBundleView: View {
223223

224224
struct 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") {

0 commit comments

Comments
 (0)