diff --git a/Focusin/AppDelegate.swift b/Focusin/AppDelegate.swift index b9c3932..df147ab 100644 --- a/Focusin/AppDelegate.swift +++ b/Focusin/AppDelegate.swift @@ -60,7 +60,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { } if startedAtLogin { - DistributedNotificationCenter.default().post(name: "killme", object: Bundle.main.bundleIdentifier!) + DistributedNotificationCenter.default().post(name: NSNotification.Name.init(rawValue: "killme"), object: Bundle.main.bundleIdentifier!) } // Set the icon for the menu bar diff --git a/Focusin/PomodoroViewController.swift b/Focusin/PomodoroViewController.swift index 95ec12e..23e8977 100644 --- a/Focusin/PomodoroViewController.swift +++ b/Focusin/PomodoroViewController.swift @@ -97,8 +97,6 @@ class PomodoroViewController: NSViewController, PreferencesDelegate, Notificatio removeTaskButton.isHidden = true fullPomodoros.stringValue = zeroPomodoros + defaults.string(forKey: Defaults.targetKey)! - currentTask.placeholderAttributedString = NSAttributedString(string: currentTaskLabel, attributes: [NSForegroundColorAttributeName: gray, NSFontAttributeName : NSFont(name: font, size: currentTaskSize)!]) - tasksView.contentViewController = TasksViewController(nibName: "TasksViewController", bundle: nil, popover: popoverView, pomodoroView: self) tasksView.behavior = NSPopoverBehavior.transient }