Tools View & Crash Report & OOM Report

This commit is contained in:
世界
2026-04-23 08:12:52 +08:00
parent 73180f0230
commit b48f4ad97f
46 changed files with 4279 additions and 533 deletions
+8
View File
@@ -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)