Skip to content

Commit

Permalink
Mark as online on appear of main view
Browse files Browse the repository at this point in the history
  • Loading branch information
morajabi committed Dec 13, 2024
1 parent 8bdbeb5 commit 6d2f70a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apple/InlineMac/Views/Main/MainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ struct MainView: View {
Log.shared.info("MainView appeared • fetching root data")
self.rootData.fetch()
self.setUpSidebarAutoCollapse()

Task {
// Set online
try? await dataManager.updateStatus(online: true)
}
}
.task {
await requestNotifications()

// Set online
try? await dataManager.updateStatus(online: true)
}
// Disable auto collapse while user is modifying it to avoid jump
.onChange(of: window.columnVisibility) { _ in
Expand Down

0 comments on commit 6d2f70a

Please sign in to comment.