             }
         }
         
+        guard apps.count > 0 else {
+            return
+        }
+        
+        let titleItem = NSMenuItem.sectionMenuItem(NSLocalizedString("menu.recent", comment: "menu"))
         let appItems = NSMenuItem.applicationMenuItems(apps)
         for menuItem in appItems.reversed() {
             menu.insertItem(menuItem, at: 0)


class MainMenuController: NSObject {
    let statusItem = NSStatusBar.system().statusItem(withLength: NSVariableStatusItemLength)
    var devices: [DeviceModel] = []
    var deviceItems: [NSMenuItem] = []
    var recentItems: [NSMenuItem] = []
    
    lazy var quitMenuItem: NSMenuItem = {
        return NSMenuItem(title: NSLocalizedString("menu.quit", comment: "menu"), action: #selector(NSApplication.terminate(_:)), keyEquivalent: "q")
    }()
    lazy var aboutItem: NSMenuItem = {
        return NSMenuItem(title: NSLocalizedString("menu.about", comment: "menu"), action: #selector(NSApplication.showAboutWindow), keyEquivalent: "")
    }()
    lazy var preferenceItem: NSMenuItem = {
        return NSMenuItem(title: NSLocalizedString("menu.preference", comment: "menu"), action: #selector(NSApplication.showPreferencesWindow), keyEquivalent: ",")
    }()
    
    var tagMap: [String: Int] = [:]
    

        guard datas.count > 0 else {
            return
        }
        var apps: [ApplicationModel] = []
        let bootedDevices = Device.shared.bootedDevices
        for bundleID in datas {
            for device in bootedDevices {
                if let app = device.application(bundleIdentifier: bundleID) {
