Browse Source

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

Fixes #4260
osy 3 years ago
parent
commit
44f746ac7a
1 changed files with 1 additions and 0 deletions
  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