Skip to content

Commit

Permalink
Show iOS version in menu item.
Browse files Browse the repository at this point in the history
  • Loading branch information
luosheng committed Nov 12, 2015
1 parent ffcdf81 commit 22769c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenSim/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 22769c5

Please sign in to comment.