summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/Section/SettingsDebugView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-03-02 06:15:43 -0800
committerFuwn <[email protected]>2025-03-02 06:15:43 -0800
commit1d27a34a6f3a455b38ebc1f8cc6c9c6d774554ba (patch)
treef12b5e29bb57a96291f47a0e94005b31ab67833f /Sora/Views/Settings/Section/SettingsDebugView.swift
parentfeat: Development commit (diff)
downloadsora-testing-1d27a34a6f3a455b38ebc1f8cc6c9c6d774554ba.tar.xz
sora-testing-1d27a34a6f3a455b38ebc1f8cc6c9c6d774554ba.zip
feat: Development commit
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)