 class ShowBrowserViewController: UIDocumentBrowserViewController {
     
     var transitionController: UIDocumentBrowserTransitionController?
+    var hasRestored = false
     
     override func viewDidLoad() {
         super.viewDidLoad()

        if let bookmarkData = coder.decodeObject(forKey: "showBookmarkData") as? Data {
            var isStale = false
            if let url = try? URL(resolvingBookmarkData: bookmarkData, bookmarkDataIsStale: &isStale), url.isFileURL {
                openShow(at: url, animated: false)
            }
        }

        super.viewDidAppear(animated)
        
        #if targetEnvironment(simulator)
        if !hasRestored { openShow(animated: false) }
        #endif
    }
    
