     }
 
     func terminate() {
-
     }
 }
 

        oneMinuteMenuItem?.state = NSOnState
        oneMinuteMenuItem?.isEnabled = true
        timeRemainingInSeconds = 60

        twoMinuteMenuItem = NSMenuItem(title: "2 min", action: #selector(timer2), keyEquivalent: "2")
        twoMinuteMenuItem?.isEnabled = true

        fiveMinuteMenuItem = NSMenuItem(title: "5 min", action: #selector(timer5), keyEquivalent: "5")
        fiveMinuteMenuItem?.isEnabled = true

        timeMenuItems = [NSMenuItem]()
        timeMenuItems?.append(oneMinuteMenuItem!)
        timeMenuItems?.append(twoMinuteMenuItem!)
        timeMenuItems?.append(fiveMinuteMenuItem!)

        menu.addItem(oneMinuteMenuItem!)
        menu.addItem(twoMinuteMenuItem!)
        menu.addItem(fiveMinuteMenuItem!)
        menu.addItem(NSMenuItem.separator())
        menu.addItem(NSMenuItem(title: "Quit", action: #selector(terminate), keyEquivalent: "q"))


    var timeMenuItems: [NSMenuItem]?
    var isTimerRunning = false
    var oneMinuteMenuItem: NSMenuItem?
    var fiveMinuteMenuItem: NSMenuItem?
    var fifteenMinuteMenuItem: NSMenuItem?
    var thirtyMinuteMenuItem: NSMenuItem?
    var sixtyMinuteMenuItem: NSMenuItem?
    var timeRemainingInSeconds = 1
    var timer: Timer?
    var minutesLeftString = ""
    var secondsLeftString = ""

    func applicationDidFinishLaunching(_ aNotification: Notification) {
        statusItem.button?.image = UserDefaults.standard.string(forKey: "AppleInterfaceStyle") == "Dark" ?
            NSImage(named: "AppIconDark") : NSImage(named:"AppIcon")
        statusItem.button?.imageScaling = NSImageScaling.scaleProportionallyDown

