Browse Source

Use constants.

pull/113/head
Abhishek Banthia 3 years ago
parent
commit
a788f9080d
  1. 3
      Clocker/Preferences/App Feedback/AppFeedbackWindowController.swift

3
Clocker/Preferences/App Feedback/AppFeedbackWindowController.swift

@ -18,7 +18,6 @@ extension NSNib.Name {
} }
enum AppFeedbackConstants { enum AppFeedbackConstants {
static let CLAppFeedbackNibIdentifier = "AppFeedbackWindow"
static let CLAppFeedbackNoResponseString = "Not Provided" static let CLAppFeedbackNoResponseString = "Not Provided"
static let CLAppFeedbackNameProperty = "name" static let CLAppFeedbackNameProperty = "name"
static let CLAppFeedbackEmailProperty = "email" static let CLAppFeedbackEmailProperty = "email"
@ -256,7 +255,7 @@ class AppFeedbackWindowController: NSWindowController {
isActivityInProgress = false isActivityInProgress = false
let alert = NSAlert() let alert = NSAlert()
alert.messageText = "Thank you for helping make Clocker even better!" alert.messageText = AppFeedbackConstants.CLFeedbackAlertTitle
alert.informativeText = AppFeedbackConstants.CLFeedbackAlertInformativeText alert.informativeText = AppFeedbackConstants.CLFeedbackAlertInformativeText
alert.addButton(withTitle: AppFeedbackConstants.CLFeedbackAlertButtonTitle) alert.addButton(withTitle: AppFeedbackConstants.CLFeedbackAlertButtonTitle)
alert.beginSheetModal(for: feedbackWindow) { _ in alert.beginSheetModal(for: feedbackWindow) { _ in

Loading…
Cancel
Save