                 }
                 playlists[name] = list
             }
-        }
-        
-        //  Either way, flush redo
-        if let undo = self.undoManager {
-            undo.removeAllActions()
         }
     }
 

            case false:
                // Restore from cache
                playlists = playCache
        }
        
        //  Either way, flush redo
        if let undo = self.undoManager {
            undo.removeAllActions()
        }
    }


        NSApp.activate(ignoringOtherApps: true)
        self.view.window?.makeKeyAndOrderFront(self)

        //  Start observing any changes
        setObserving(true)
    }
