diff --git a/LiquipediaMenu.xcworkspace/xcuserdata/felixfoertsch.xcuserdatad/UserInterfaceState.xcuserstate b/LiquipediaMenu.xcworkspace/xcuserdata/felixfoertsch.xcuserdatad/UserInterfaceState.xcuserstate index 2a79704..7deccb8 100644 Binary files a/LiquipediaMenu.xcworkspace/xcuserdata/felixfoertsch.xcuserdatad/UserInterfaceState.xcuserstate and b/LiquipediaMenu.xcworkspace/xcuserdata/felixfoertsch.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/LiquipediaMenu.xcworkspace/xcuserdata/felixfoertsch.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/LiquipediaMenu.xcworkspace/xcuserdata/felixfoertsch.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist index ed9a9b4..6194c28 100644 --- a/LiquipediaMenu.xcworkspace/xcuserdata/felixfoertsch.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ b/LiquipediaMenu.xcworkspace/xcuserdata/felixfoertsch.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -2,4 +2,22 @@ + + + + + + diff --git a/LiquipediaMenu/Base.lproj/MainMenu.xib b/LiquipediaMenu/Base.lproj/MainMenu.xib index 4ff0733..30f16fc 100644 --- a/LiquipediaMenu/Base.lproj/MainMenu.xib +++ b/LiquipediaMenu/Base.lproj/MainMenu.xib @@ -682,7 +682,7 @@ - + diff --git a/LiquipediaMenu/MatchesAPI.swift b/LiquipediaMenu/MatchesAPI.swift index f3bbfb3..8bb6096 100644 --- a/LiquipediaMenu/MatchesAPI.swift +++ b/LiquipediaMenu/MatchesAPI.swift @@ -9,6 +9,10 @@ import Foundation import SwiftSoup +protocol MatchesAPIDelegate { + +} + class MatchesAPI { func fetchMatches(for game: String) -> [Match]? { diff --git a/LiquipediaMenu/StatusBarController.swift b/LiquipediaMenu/StatusBarController.swift index e143bba..1115536 100644 --- a/LiquipediaMenu/StatusBarController.swift +++ b/LiquipediaMenu/StatusBarController.swift @@ -8,7 +8,15 @@ import Cocoa -class StatusBarController: NSObject, NSMenuDelegate { +class StatusBarController: NSObject, NSUserInterfaceValidations { + func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool { + if let menuitem = item as? NSMenuItem { + menuitem.state = .on + } + return true + } + + @IBOutlet weak var statusBar: NSMenu! let statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength) let matchesAPI = MatchesAPI()