Skip to content

Commit

Permalink
Removed error in font attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoqa committed Dec 18, 2016
1 parent a79dd58 commit acb48a7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Focusin/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions Focusin/PomodoroViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit acb48a7

Please sign in to comment.