Tools View & Crash Report & OOM Report
This commit is contained in:
@@ -73,6 +73,7 @@ struct MainView: View {
|
||||
}
|
||||
.tag(page)
|
||||
.tabItem { page.label }
|
||||
.badge(page == .tools ? environments.totalUnreadReportCount : 0)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -176,6 +177,13 @@ struct MainView: View {
|
||||
environments.connect()
|
||||
}
|
||||
}
|
||||
.onReceive(NotificationCenter.default.publisher(for: .reportReceived)) { _ in
|
||||
Task {
|
||||
await environments.crashReportManager.refresh()
|
||||
await environments.oomReportManager.refresh()
|
||||
selection = .tools
|
||||
}
|
||||
}
|
||||
.environment(\.selection, $selection)
|
||||
.environment(\.importProfile, $importProfile)
|
||||
.environment(\.importRemoteProfile, $importRemoteProfile)
|
||||
|
||||
Reference in New Issue
Block a user