From 18e57ce4598103b33b6d2ca1ba5eb7bef80d1b84 Mon Sep 17 00:00:00 2001 From: osy <50960678+osy@users.noreply.github.com> Date: Fri, 5 Aug 2022 20:14:37 -0700 Subject: [PATCH] home: hide popup when download completes Fixes #4261 --- Platform/Shared/UTMPlaceholderVMView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Platform/Shared/UTMPlaceholderVMView.swift b/Platform/Shared/UTMPlaceholderVMView.swift index be25f314c..62653678b 100644 --- a/Platform/Shared/UTMPlaceholderVMView.swift +++ b/Platform/Shared/UTMPlaceholderVMView.swift @@ -68,6 +68,9 @@ struct UTMPlaceholderVMView: View where Content: View { }.padding([.top, .bottom], 10) .onTapGesture(perform: toggleDetailsPopup) .popover(isPresented: $showingDetails, content: popover) + .onDisappear { + showingDetails = false + } #if os(macOS) .onHover(perform: { hovering in self.showRemoveButton = hovering