tools: Network Quality and STUN
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user