tools: Network Quality and STUN

This commit is contained in:
世界
2026-04-23 08:12:52 +08:00
parent 6559720e00
commit cd48f1abf6
24 changed files with 1537 additions and 501 deletions
+8 -1
View File
@@ -21,7 +21,9 @@ struct EditProfileContentWindow: View {
var body: some View {
Group {
if viewModel.isLoading {
if context == nil {
Color.clear
} else if viewModel.isLoading {
ProgressView()
.frame(maxWidth: .infinity, maxHeight: .infinity)
.task {
@@ -37,8 +39,13 @@ struct EditProfileContentWindow: View {
.frame(minWidth: 600, minHeight: 400)
.background(WindowAccessor { window in
guard let window else { return }
if context == nil {
window.close()
return
}
if windowState.window == nil {
windowState.window = window
window.isRestorable = false
windowState.onClose = { [weak viewModel] in
viewModel?.reset()
}