Skip to content

Commit 6d2f70a

Browse files
committed
Mark as online on appear of main view
1 parent 8bdbeb5 commit 6d2f70a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

apple/InlineMac/Views/Main/MainView.swift

+5-3
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ struct MainView: View {
3838
Log.shared.info("MainView appeared • fetching root data")
3939
self.rootData.fetch()
4040
self.setUpSidebarAutoCollapse()
41+
42+
Task {
43+
// Set online
44+
try? await dataManager.updateStatus(online: true)
45+
}
4146
}
4247
.task {
4348
await requestNotifications()
44-
45-
// Set online
46-
try? await dataManager.updateStatus(online: true)
4749
}
4850
// Disable auto collapse while user is modifying it to avoid jump
4951
.onChange(of: window.columnVisibility) { _ in

0 commit comments

Comments
 (0)