Răsfoiți Sursa

home: open popup cannot open again if closed by swiping down

Fixes #4260
osy 3 ani în urmă
părinte
comite
44f746ac7a
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      Platform/Shared/ContentView.swift

+ 1 - 0
Platform/Shared/ContentView.swift

@@ -87,6 +87,7 @@ struct ContentView: View {
             data.newVM()
         }.onReceive(NSNotification.OpenVirtualMachine) { _ in
             data.showNewVMSheet = false
+            openSheetPresented = false
             // FIXME: SwiftUI bug on iOS requires this wait
             DispatchQueue.main.asyncAfter(deadline: .now() + 0.02) {
                 openSheetPresented = true