      */
     public static func show(_ animated: Bool = true) {
         if shared.isDismissing {
-            shared.shouldShowAfterDismissing = true
+            shared.isDismissing = false
+            makeKeyWindowVisible(animated)
             return
         }
 
         guard shared.hudWindow == nil else { return }
-        
+        makeKeyWindowVisible(animated)
+    }
+    
+    fileprivate static func makeKeyWindowVisible(_ animated: Bool) {
         shared.hudWindow = shared.getHUDWindow()
         shared.hudWindow?.makeKeyAndVisible()
         

     */
    public static var config = MKConfig()
    
    fileprivate var isDismissing = false
    
    fileprivate var shouldShowAfterDismissing =  false
    
    fileprivate var isWaitingToShow = false
    
    /**

        
        UIView.animate(withDuration: MKProgress.config.fadeInAnimationDuration, animations: {
            rootViewController.view.layer.opacity = 1.0
        })
    }
    
