Merge branch 'master' of bitbucket.org:felixfoertsch/liquidmenu
This commit is contained in:
@@ -10,6 +10,8 @@ import Cocoa
|
||||
|
||||
class StatusBarController: NSObject, NSMenuItemValidation {
|
||||
|
||||
@IBOutlet weak var matchView: MatchView!
|
||||
|
||||
func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
|
||||
return true
|
||||
}
|
||||
@@ -54,11 +56,16 @@ class StatusBarController: NSObject, NSMenuItemValidation {
|
||||
}
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
if let matches = self.matchesAPI.fetchMatches(for: "counterstrike") {
|
||||
=======
|
||||
if let matches = self.matchesAPI.fetchMatches(for: "starcraft2") {
|
||||
>>>>>>> 7de8fd2c2bd41baf8480580a6392c8c7869919a6
|
||||
for match in matches {
|
||||
let newItem = MatchMenuItem.init(for: match, action: #selector(self.openStreamLink))
|
||||
newItem.tag = 1
|
||||
newItem.target = self
|
||||
newItem.view = matchView
|
||||
self.statusBar.addItem(newItem)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user