Browse Source

Spacing.

pull/92/head
Abhishek 4 years ago
parent
commit
f4e74f9ca7
  1. 2
      Clocker/Events and Reminders/RemindersHandler.swift
  2. 2
      Clocker/Onboarding/OnboardingSearchController.swift
  3. 4
      Clocker/Overall App/Themer.swift
  4. 2
      Clocker/Panel/ParentPanelController.swift
  5. 4
      Clocker/Preferences/General/PreferencesDataSource.swift
  6. 4
      Clocker/Preferences/General/PreferencesViewController.swift
  7. 2
      Clocker/Preferences/Permissions/PermissionsViewController.swift

2
Clocker/Events and Reminders/RemindersHandler.swift

@ -77,7 +77,7 @@ extension EventCenter {
try eventStore.save(reminderEvent, commit: true) try eventStore.save(reminderEvent, commit: true)
} catch { } catch {
Logger.log(object: ["Error": error.localizedDescription], Logger.log(object: ["Error": error.localizedDescription],
for: "Error saving reminder") for: "Error saving reminder")
return false return false
} }

2
Clocker/Onboarding/OnboardingSearchController.swift

@ -190,7 +190,7 @@ class OnboardingSearchController: NSViewController {
self.undoButton.isHidden = false self.undoButton.isHidden = false
Logger.log(object: ["Place Name": filteredAddress], Logger.log(object: ["Place Name": filteredAddress],
for: "Added Timezone while Onboarding") for: "Added Timezone while Onboarding")
} }
// Cleanup. // Cleanup.

4
Clocker/Overall App/Themer.swift

@ -187,8 +187,8 @@ extension Themer {
return return
themeIndex == .light themeIndex == .light
? NSImage(named: NSImage.Name("Settings"))! ? NSImage(named: NSImage.Name("Settings"))!
: NSImage(named: NSImage.Name("Settings-White"))! : NSImage(named: NSImage.Name("Settings-White"))!
} }
func pinImage() -> NSImage { func pinImage() -> NSImage {

2
Clocker/Panel/ParentPanelController.swift

@ -1025,7 +1025,7 @@ extension ParentPanelController: NSPopoverDelegate {
extension ParentPanelController: NSSharingServicePickerDelegate { extension ParentPanelController: NSSharingServicePickerDelegate {
func sharingServicePicker(_: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> NSSharingServiceDelegate? { func sharingServicePicker(_: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> NSSharingServiceDelegate? {
Logger.log(object: ["Service Title": sharingService.title], Logger.log(object: ["Service Title": sharingService.title],
for: "Sharing Service Executed") for: "Sharing Service Executed")
return self as? NSSharingServiceDelegate return self as? NSSharingServiceDelegate
} }
} }

4
Clocker/Preferences/General/PreferencesDataSource.swift

@ -161,7 +161,7 @@ extension PreferencesDataSource: NSTableViewDataSource {
"Old Label": dataObject.customLabel ?? "Error", "Old Label": dataObject.customLabel ?? "Error",
"New Label": formattedValue, "New Label": formattedValue,
], ],
for: "Custom Label Changed") for: "Custom Label Changed")
dataObject.setLabel(formattedValue) dataObject.setLabel(formattedValue)
@ -174,7 +174,7 @@ extension PreferencesDataSource: NSTableViewDataSource {
"Selected Timezone Count": selectedTimezones.count, "Selected Timezone Count": selectedTimezones.count,
"Current Row": row, "Current Row": row,
], ],
for: "Error in selected row count") for: "Error in selected row count")
} }
} }

4
Clocker/Preferences/General/PreferencesViewController.swift

@ -41,7 +41,7 @@ class PreferencesViewController: ParentViewController {
guard let path = Bundle.main.path(forResource: "Keys", ofType: "plist"), guard let path = Bundle.main.path(forResource: "Keys", ofType: "plist"),
let dictionary = NSDictionary(contentsOfFile: path), let dictionary = NSDictionary(contentsOfFile: path),
let apiKey = dictionary["GeocodingKey"] as? String else { let apiKey = dictionary["GeocodingKey"] as? String else {
assertionFailure("Unable to find the API key") // assertionFailure("Unable to find the API key")
return "" return ""
} }
return apiKey return apiKey
@ -327,7 +327,7 @@ extension PreferencesViewController: NSTableViewDataSource, NSTableViewDelegate
private func _unfavourite(_ dataObject: TimezoneData) { private func _unfavourite(_ dataObject: TimezoneData) {
Logger.log(object: ["label": dataObject.customLabel ?? "Error"], Logger.log(object: ["label": dataObject.customLabel ?? "Error"],
for: "favouriteRemoved") for: "favouriteRemoved")
if let appDelegate = NSApplication.shared.delegate as? AppDelegate, if let appDelegate = NSApplication.shared.delegate as? AppDelegate,
let menubarFavourites = DataStore.shared().menubarTimezones(), let menubarFavourites = DataStore.shared().menubarTimezones(),

2
Clocker/Preferences/Permissions/PermissionsViewController.swift

@ -149,7 +149,7 @@ class PermissionsViewController: ParentViewController {
} }
} else { } else {
Logger.log(object: ["Reminder Access Not Granted": "YES"], Logger.log(object: ["Reminder Access Not Granted": "YES"],
for: "Reminder Access Not Granted") for: "Reminder Access Not Granted")
} }
}) })
} else if eventCenter.calendarAccessGranted() { } else if eventCenter.calendarAccessGranted() {

Loading…
Cancel
Save