From 22769c59b2cbf1ce54520a735067dcdb58a6805e Mon Sep 17 00:00:00 2001 From: Luo Sheng Date: Thu, 12 Nov 2015 10:59:24 +0800 Subject: [PATCH] Show iOS version in menu item. --- OpenSim/AppDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/AppDelegate.swift b/OpenSim/AppDelegate.swift index ec7ed93..b4793f9 100644 --- a/OpenSim/AppDelegate.swift +++ b/OpenSim/AppDelegate.swift @@ -69,7 +69,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { DeviceManager.defaultManager.reload() let iOSDevices = DeviceManager.defaultManager.deviceMapping.filter { $0.0.containsString("iOS") }.flatMap { $0.1 } iOSDevices.forEach { device in - let deviceMenuItem = statusItem.menu?.addItemWithTitle("\(device.name)", action: nil, keyEquivalent: "") + let deviceMenuItem = statusItem.menu?.addItemWithTitle("\(device.name) (\(device.runtime))", action: nil, keyEquivalent: "") deviceMenuItem?.onStateImage = NSImage(named: "active") deviceMenuItem?.offStateImage = NSImage(named: "inactive") deviceMenuItem?.state = device.state == .Booted ? NSOnState : NSOffState