Skip to content

Commit eb9be5e

Browse files
committed
chore: formatting
Signed-off-by: Tommy van der Vorst <tommy@pixelspark.nl>
1 parent 1d1b87e commit eb9be5e

File tree

4 files changed

+25
-12
lines changed

4 files changed

+25
-12
lines changed

Sushitrain/AppState.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class SushitrainDelegate: NSObject {
109109

110110
// Whether to show the onboarding on the next startup, regardless of whether it has been shown before
111111
@AppStorage("forceOnboardingOnNextStartup") var forceOnboardingOnNextStartup = false
112-
112+
113113
// Bookmarked places in the app
114114
@AppStorage("bookmarkedRoutes") var bookmarkedRoutes: [URL] = []
115115

Sushitrain/BrowserView.swift

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,17 +211,23 @@ struct BrowserView: View {
211211
}
212212
}
213213
#endif
214-
214+
215215
#if os(macOS)
216-
.alert("This location has been added to your bookmarks. Bookmarked locations can be accessed quickly from the start page.", isPresented: $showNewBookmarkInfo) {
216+
.alert(
217+
"This location has been added to your bookmarks. Bookmarked locations can be accessed quickly from the start page.",
218+
isPresented: $showNewBookmarkInfo
219+
) {
217220
Button("OK") {}
218221
}
219222
#else
220-
.alert("This location has been added to your bookmarks. Bookmarked locations can be accessed quickly from the start page, or by long-tapping the app icon om the home screen.", isPresented: $showNewBookmarkInfo) {
223+
.alert(
224+
"This location has been added to your bookmarks. Bookmarked locations can be accessed quickly from the start page, or by long-tapping the app icon om the home screen.",
225+
isPresented: $showNewBookmarkInfo
226+
) {
221227
Button("OK") {}
222228
}
223229
#endif
224-
230+
225231
.task {
226232
self.update()
227233
}
@@ -623,7 +629,7 @@ struct BrowserView: View {
623629
}
624630
Log.info("New bookmarks: \(userSettings.bookmarkedRoutes)")
625631
self.update()
626-
632+
627633
if fav {
628634
self.showNewBookmarkInfo = true
629635
}

Sushitrain/ContentView.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ private struct ContentView: View {
126126
// Me
127127
NavigationStack {
128128
#if os(iOS)
129-
StartView(topLevelRoute: $topLevelRoute, userSettings: appState.userSettings, backgroundManager: appState.backgroundManager)
129+
StartView(
130+
topLevelRoute: $topLevelRoute, userSettings: appState.userSettings,
131+
backgroundManager: appState.backgroundManager)
130132
#else
131133
StartView(topLevelRoute: $topLevelRoute, userSettings: appState.userSettings)
132134
#endif
@@ -654,7 +656,8 @@ private struct StartOrSearchView: View {
654656
}
655657
else {
656658
#if os(iOS)
657-
StartView(topLevelRoute: $topLevelRoute, userSettings: appState.userSettings, backgroundManager: appState.backgroundManager)
659+
StartView(
660+
topLevelRoute: $topLevelRoute, userSettings: appState.userSettings, backgroundManager: appState.backgroundManager)
658661
#else
659662
StartView(topLevelRoute: $topLevelRoute, userSettings: appState.userSettings)
660663
#endif

Sushitrain/StartView.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,11 @@ private struct NetworkStatusView: View {
207207
self.showInfo = true
208208
}
209209
.alert(isPresented: $showInfo) {
210-
Alert(title: Text("Internet connection quality"), message: Text("The internet connection status is determined by the system. When the internet connection is limited or degraded, file synchronization and streaming over the internet may be slower than usual, or not work at all. File streaming and synchronization with devices that are on the same local network is expected to work as usual."))
210+
Alert(
211+
title: Text("Internet connection quality"),
212+
message: Text(
213+
"The internet connection status is determined by the system. When the internet connection is limited or degraded, file synchronization and streaming over the internet may be slower than usual, or not work at all. File streaming and synchronization with devices that are on the same local network is expected to work as usual."
214+
))
211215
}
212216
}
213217
}
@@ -311,7 +315,7 @@ struct StartView: View {
311315
@Environment(AppState.self) private var appState
312316
@Environment(\.navigateTo) private var navigateTo
313317
@Binding var topLevelRoute: Route?
314-
318+
315319
@ObservedObject var userSettings: AppUserSettings
316320

317321
#if os(iOS)
@@ -413,7 +417,7 @@ struct StartView: View {
413417
Label("Recent changes", systemImage: "clock.arrow.2.circlepath").badge(changesCount)
414418
}.disabled(changesCount == 0)
415419
}
416-
420+
417421
self.bookmarksSection()
418422

419423
if appState.photoBackup.isReady {
@@ -554,7 +558,7 @@ struct StartView: View {
554558
}
555559
}
556560
}
557-
561+
558562
@ViewBuilder private func gettingStartedFolders() -> some View {
559563
Section("Getting started") {
560564
VStack(alignment: .leading, spacing: 5) {

0 commit comments

Comments
 (0)