summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/Section/SettingsDebugView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sora/Views/Settings/Section/SettingsDebugView.swift')
-rw-r--r--Sora/Views/Settings/Section/SettingsDebugView.swift13
1 files changed, 11 insertions, 2 deletions
diff --git a/Sora/Views/Settings/Section/SettingsDebugView.swift b/Sora/Views/Settings/Section/SettingsDebugView.swift
index af55745..368676b 100644
--- a/Sora/Views/Settings/Section/SettingsDebugView.swift
+++ b/Sora/Views/Settings/Section/SettingsDebugView.swift
@@ -2,15 +2,24 @@ import SwiftUI
struct SettingsDebugView: View {
@EnvironmentObject private var settingsManager: SettingsManager
+
var body: some View {
- Button(action: { settingsManager.addDummyBookmarks() }) {
+ Button(action: {
+ #if DEBUG
+ settingsManager.addDummyBookmarks()
+ #endif
+ }) {
Text("Add Dummy Bookmarks")
}
#if os(macOS)
.frame(maxWidth: .infinity, alignment: .trailing)
#endif
- Button(action: { settingsManager.addDummySearchHistory() }) {
+ Button(action: {
+ #if DEBUG
+ settingsManager.addDummySearchHistory()
+ #endif
+ }) {
Text("Add Dummy Search History")
}
#if os(macOS)