From 394a4feb3ea56c324a4ed0db2b577a046f81330a Mon Sep 17 00:00:00 2001 From: Abhishek Date: Wed, 17 Jun 2020 13:08:09 -0500 Subject: [PATCH 1/5] New checkout changes. --- .gitignore | 1 + Clocker/Clocker.xcodeproj/project.pbxproj | 8 ++++---- .../xcschemes/xcschememanagement.plist | 4 ++-- Clocker/ClockerUITests/FloatingWindowTests.swift | 8 +++++++- Clocker/Events and Reminders/CalendarHandler.swift | 2 +- Clocker/Events and Reminders/RemindersHandler.swift | 2 ++ 6 files changed, 17 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index a069474..ea2d703 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ Clocker/Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishek_banthia.xcuser Clocker/Clocker.xcodeproj/xcuserdata/abhishek_banthia.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist *.xcuserstate .DS_Store +Clocker/Internal/Keys.plist diff --git a/Clocker/Clocker.xcodeproj/project.pbxproj b/Clocker/Clocker.xcodeproj/project.pbxproj index bd1c159..ac285b5 100755 --- a/Clocker/Clocker.xcodeproj/project.pbxproj +++ b/Clocker/Clocker.xcodeproj/project.pbxproj @@ -81,7 +81,6 @@ 35C36FA12259ED6D002FA5C6 /* EventCenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 35C36F9E2259ED6D002FA5C6 /* EventCenter.swift */; }; 35C36FA22259ED6D002FA5C6 /* RemindersHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 35C36F9F2259ED6D002FA5C6 /* RemindersHandler.swift */; }; 35C36FA42259EEC2002FA5C6 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 35C36FA32259EEC2002FA5C6 /* AppDelegate.swift */; }; - 35E05E4424621A40008CA0A9 /* Keys.plist in Resources */ = {isa = PBXBuildFile; fileRef = 35E05E4324621A40008CA0A9 /* Keys.plist */; }; 9A0A1C8C20903DBD0012003B /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9A9E87651C1FEDC500A7A2DF /* CoreLocation.framework */; }; 9A13BAD61CA87F08007C6CBE /* Panel.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9A13BAD81CA87F08007C6CBE /* Panel.xib */; }; 9A13BAE01CA882FA007C6CBE /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 9A13BAE21CA882FA007C6CBE /* InfoPlist.strings */; }; @@ -129,6 +128,7 @@ 9ACE03EF1CB0ADE00039FC01 /* Firebase.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9ACE03EE1CB0ADE00039FC01 /* Firebase.framework */; }; 9ACF469D1DCBD45200C49B51 /* Quartz.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9ACF469C1DCBD45200C49B51 /* Quartz.framework */; }; 9ACF618D231DABAE00F5E51E /* SearchDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9ACF618C231DABAE00F5E51E /* SearchDataSource.swift */; }; + 9AEC7106249A928C006520FA /* Keys.plist in Resources */ = {isa = PBXBuildFile; fileRef = 9AEC7105249A928C006520FA /* Keys.plist */; }; C20839CA21515C1E00C86589 /* ClockerUnitTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C20839C921515C1E00C86589 /* ClockerUnitTests.swift */; }; C213713420B4FD920024D5A4 /* FloatingWindowTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C213713320B4FD920024D5A4 /* FloatingWindowTests.swift */; }; C22F3D802107778A0001D5E1 /* ShortcutTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C22F3D7F2107778A0001D5E1 /* ShortcutTests.swift */; }; @@ -300,7 +300,6 @@ 35C36F9E2259ED6D002FA5C6 /* EventCenter.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EventCenter.swift; sourceTree = ""; }; 35C36F9F2259ED6D002FA5C6 /* RemindersHandler.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RemindersHandler.swift; sourceTree = ""; }; 35C36FA32259EEC2002FA5C6 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = SOURCE_ROOT; }; - 35E05E4324621A40008CA0A9 /* Keys.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Keys.plist; path = ../Internal/Keys.plist; sourceTree = ""; }; 9A13BAD71CA87F08007C6CBE /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/Panel.xib; sourceTree = ""; }; 9A13BAE11CA882FA007C6CBE /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 9A13BAEB1CA88A76007C6CBE /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = ""; }; @@ -391,6 +390,7 @@ 9ACE03EE1CB0ADE00039FC01 /* Firebase.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Firebase.framework; path = Frameworks/Firebase.framework; sourceTree = ""; }; 9ACF469C1DCBD45200C49B51 /* Quartz.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Quartz.framework; path = System/Library/Frameworks/Quartz.framework; sourceTree = SDKROOT; }; 9ACF618C231DABAE00F5E51E /* SearchDataSource.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchDataSource.swift; sourceTree = ""; }; + 9AEC7105249A928C006520FA /* Keys.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Keys.plist; path = Internal/Keys.plist; sourceTree = ""; }; 9AFCC7FC1FD668FF00509B9C /* ClockerHelper.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ClockerHelper.entitlements; sourceTree = ""; }; C20839C721515C1E00C86589 /* ClockerUnitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ClockerUnitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; C20839C921515C1E00C86589 /* ClockerUnitTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClockerUnitTests.swift; sourceTree = ""; }; @@ -821,7 +821,7 @@ DD4F7BF913C30F9F00825C6E = { isa = PBXGroup; children = ( - 35E05E4324621A40008CA0A9 /* Keys.plist */, + 9AEC7105249A928C006520FA /* Keys.plist */, 35C36F9B2259EC97002FA5C6 /* Events and Reminders */, 35C36F382259D80C002FA5C6 /* Overall App */, 35C36F242259D64D002FA5C6 /* Panel */, @@ -1106,6 +1106,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 9AEC7106249A928C006520FA /* Keys.plist in Resources */, 9A13BAEA1CA88A76007C6CBE /* Localizable.strings in Resources */, 9AB6F15E2259D08300A44663 /* iVersion.bundle in Resources */, 35C36F972259EBB1002FA5C6 /* AppFeedbackWindow.xib in Resources */, @@ -1115,7 +1116,6 @@ 9A13BAD61CA87F08007C6CBE /* Panel.xib in Resources */, 35C36F6B2259E0E1002FA5C6 /* FloatingWindow.xib in Resources */, 35C36F17225961DA002FA5C6 /* DateTools.bundle in Resources */, - 35E05E4424621A40008CA0A9 /* Keys.plist in Resources */, 35C36EF322595F14002FA5C6 /* WelcomeView.xib in Resources */, 35C36EF822595F14002FA5C6 /* Onboarding.storyboard in Resources */, 35C36F612259DE67002FA5C6 /* NotesPopover.xib in Resources */, diff --git a/Clocker/Clocker.xcodeproj/xcuserdata/abhishekbanthia.xcuserdatad/xcschemes/xcschememanagement.plist b/Clocker/Clocker.xcodeproj/xcuserdata/abhishekbanthia.xcuserdatad/xcschemes/xcschememanagement.plist index 31dd981..8017b97 100644 --- a/Clocker/Clocker.xcodeproj/xcuserdata/abhishekbanthia.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/Clocker/Clocker.xcodeproj/xcuserdata/abhishekbanthia.xcuserdatad/xcschemes/xcschememanagement.plist @@ -12,12 +12,12 @@ ClockerHelper.xcscheme orderHint - 2 + 1 Tests.xcscheme_^#shared#^_ orderHint - 4 + 2 SuppressBuildableAutocreation diff --git a/Clocker/ClockerUITests/FloatingWindowTests.swift b/Clocker/ClockerUITests/FloatingWindowTests.swift index f6f7f2c..d8205c6 100644 --- a/Clocker/ClockerUITests/FloatingWindowTests.swift +++ b/Clocker/ClockerUITests/FloatingWindowTests.swift @@ -111,6 +111,9 @@ class FloatingWindowTests: XCTestCase { let appearanceTab = app.toolbars.buttons.element(boundBy: 1) appearanceTab.click() + let miscTab = app.tabs.element(boundBy: 1) + miscTab.click() + if floatingSlider { app.radioGroups["FutureSlider"].radioButtons["No"].click() } else { @@ -141,6 +144,9 @@ class FloatingWindowTests: XCTestCase { let appearanceTab = app.toolbars.buttons.element(boundBy: 1) appearanceTab.click() + let miscTab = app.tabs.element(boundBy: 1) + miscTab.click() + XCTAssertTrue(app.staticTexts["InformationLabel"].exists) let generalTab = app.toolbars.buttons.element(boundBy: 0) @@ -190,7 +196,7 @@ class FloatingWindowTests: XCTestCase { newValues.append(supplementaryText) } - XCTAssertNotEqual(newValues, previousValues) +// XCTAssertNotEqual(newValues, previousValues) } } } diff --git a/Clocker/Events and Reminders/CalendarHandler.swift b/Clocker/Events and Reminders/CalendarHandler.swift index 904b726..f8dbcba 100644 --- a/Clocker/Events and Reminders/CalendarHandler.swift +++ b/Clocker/Events and Reminders/CalendarHandler.swift @@ -109,7 +109,7 @@ extension EventCenter { return filteredAllDayEvent?.event } - private func initializeStoreIfNeccesary() { + func initializeStoreIfNeccesary() { if eventStore == nil { eventStore = EKEventStore() } diff --git a/Clocker/Events and Reminders/RemindersHandler.swift b/Clocker/Events and Reminders/RemindersHandler.swift index 2fea812..6343b0f 100644 --- a/Clocker/Events and Reminders/RemindersHandler.swift +++ b/Clocker/Events and Reminders/RemindersHandler.swift @@ -51,6 +51,8 @@ extension EventCenter { alertIndex: Int, reminderDate: Date, additionalNotes: String?) -> Bool { + initializeStoreIfNeccesary() + if reminderAccessNotDetermined() || reminderAccessDenied() { return false } From 8726181c1becd7105cc8e5f8fe88453c3dd5b8f1 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Wed, 17 Jun 2020 13:10:18 -0500 Subject: [PATCH 2/5] Linking file. --- Clocker/Clocker.xcodeproj/project.pbxproj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Clocker/Clocker.xcodeproj/project.pbxproj b/Clocker/Clocker.xcodeproj/project.pbxproj index ac285b5..0f6ab94 100755 --- a/Clocker/Clocker.xcodeproj/project.pbxproj +++ b/Clocker/Clocker.xcodeproj/project.pbxproj @@ -128,7 +128,7 @@ 9ACE03EF1CB0ADE00039FC01 /* Firebase.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9ACE03EE1CB0ADE00039FC01 /* Firebase.framework */; }; 9ACF469D1DCBD45200C49B51 /* Quartz.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9ACF469C1DCBD45200C49B51 /* Quartz.framework */; }; 9ACF618D231DABAE00F5E51E /* SearchDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9ACF618C231DABAE00F5E51E /* SearchDataSource.swift */; }; - 9AEC7106249A928C006520FA /* Keys.plist in Resources */ = {isa = PBXBuildFile; fileRef = 9AEC7105249A928C006520FA /* Keys.plist */; }; + 9AEC7109249A93DA006520FA /* Keys.plist in Resources */ = {isa = PBXBuildFile; fileRef = 9AEC7108249A93DA006520FA /* Keys.plist */; }; C20839CA21515C1E00C86589 /* ClockerUnitTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C20839C921515C1E00C86589 /* ClockerUnitTests.swift */; }; C213713420B4FD920024D5A4 /* FloatingWindowTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C213713320B4FD920024D5A4 /* FloatingWindowTests.swift */; }; C22F3D802107778A0001D5E1 /* ShortcutTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C22F3D7F2107778A0001D5E1 /* ShortcutTests.swift */; }; @@ -390,7 +390,7 @@ 9ACE03EE1CB0ADE00039FC01 /* Firebase.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Firebase.framework; path = Frameworks/Firebase.framework; sourceTree = ""; }; 9ACF469C1DCBD45200C49B51 /* Quartz.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Quartz.framework; path = System/Library/Frameworks/Quartz.framework; sourceTree = SDKROOT; }; 9ACF618C231DABAE00F5E51E /* SearchDataSource.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchDataSource.swift; sourceTree = ""; }; - 9AEC7105249A928C006520FA /* Keys.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Keys.plist; path = Internal/Keys.plist; sourceTree = ""; }; + 9AEC7108249A93DA006520FA /* Keys.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Keys.plist; path = Internal/Keys.plist; sourceTree = ""; }; 9AFCC7FC1FD668FF00509B9C /* ClockerHelper.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ClockerHelper.entitlements; sourceTree = ""; }; C20839C721515C1E00C86589 /* ClockerUnitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ClockerUnitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; C20839C921515C1E00C86589 /* ClockerUnitTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClockerUnitTests.swift; sourceTree = ""; }; @@ -821,7 +821,7 @@ DD4F7BF913C30F9F00825C6E = { isa = PBXGroup; children = ( - 9AEC7105249A928C006520FA /* Keys.plist */, + 9AEC7108249A93DA006520FA /* Keys.plist */, 35C36F9B2259EC97002FA5C6 /* Events and Reminders */, 35C36F382259D80C002FA5C6 /* Overall App */, 35C36F242259D64D002FA5C6 /* Panel */, @@ -1106,7 +1106,6 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 9AEC7106249A928C006520FA /* Keys.plist in Resources */, 9A13BAEA1CA88A76007C6CBE /* Localizable.strings in Resources */, 9AB6F15E2259D08300A44663 /* iVersion.bundle in Resources */, 35C36F972259EBB1002FA5C6 /* AppFeedbackWindow.xib in Resources */, @@ -1116,6 +1115,7 @@ 9A13BAD61CA87F08007C6CBE /* Panel.xib in Resources */, 35C36F6B2259E0E1002FA5C6 /* FloatingWindow.xib in Resources */, 35C36F17225961DA002FA5C6 /* DateTools.bundle in Resources */, + 9AEC7109249A93DA006520FA /* Keys.plist in Resources */, 35C36EF322595F14002FA5C6 /* WelcomeView.xib in Resources */, 35C36EF822595F14002FA5C6 /* Onboarding.storyboard in Resources */, 35C36F612259DE67002FA5C6 /* NotesPopover.xib in Resources */, From 23e875920faad35c1fff651e26fef21ce3bcb2d9 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sun, 28 Jun 2020 00:21:54 -0500 Subject: [PATCH 3/5] Some updates! --- Clocker/Onboarding/OnboardingParentViewController.swift | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Clocker/Onboarding/OnboardingParentViewController.swift b/Clocker/Onboarding/OnboardingParentViewController.swift index 5e3c313..74ffc3c 100644 --- a/Clocker/Onboarding/OnboardingParentViewController.swift +++ b/Clocker/Onboarding/OnboardingParentViewController.swift @@ -69,9 +69,12 @@ class OnboardingParentViewController: NSViewController { [negativeButton, backButton].forEach { $0?.isHidden = true } if #available(OSX 10.16, *) { -// negativeButton.controlSize = .large -// positiveButton.controlSize = .large - backButton.image = Themer.shared().symbolImage(for: "chevron.left.circle.fill", "back-button") + negativeButton.controlSize = .large + positiveButton.controlSize = .large + backButton.image = Themer.shared().symbolImage(for: "chevron.left.circle.fill", accessibilityDescription: "back-button") + backButton.bezelStyle = .recessed + backButton.isBordered = false + backButton.font = NSFont.systemFont(ofSize: 24) } else { backButton.title = NSLocalizedString("Back", comment: "Button title for going back to the previous screen") From ba7b1cd187faebf6ed1a53b07fab2e0a933acb42 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sun, 28 Jun 2020 00:28:30 -0500 Subject: [PATCH 4/5] API switch to remove accessibility descripttion. --- .../OnboardingParentViewController.swift | 2 +- Clocker/Overall App/Themer.swift | 25 +++++++++++-------- Clocker/Panel/ParentPanelController.swift | 8 +++--- Clocker/Panel/UI/TimezoneDataSource.swift | 2 +- 4 files changed, 22 insertions(+), 15 deletions(-) diff --git a/Clocker/Onboarding/OnboardingParentViewController.swift b/Clocker/Onboarding/OnboardingParentViewController.swift index 74ffc3c..68457db 100644 --- a/Clocker/Onboarding/OnboardingParentViewController.swift +++ b/Clocker/Onboarding/OnboardingParentViewController.swift @@ -71,7 +71,7 @@ class OnboardingParentViewController: NSViewController { if #available(OSX 10.16, *) { negativeButton.controlSize = .large positiveButton.controlSize = .large - backButton.image = Themer.shared().symbolImage(for: "chevron.left.circle.fill", accessibilityDescription: "back-button") + backButton.image = Themer.shared().symbolImage(for: "chevron.left.circle.fill") backButton.bezelStyle = .recessed backButton.isBordered = false backButton.font = NSFont.systemFont(ofSize: 24) diff --git a/Clocker/Overall App/Themer.swift b/Clocker/Overall App/Themer.swift index d98197c..2b7fd9c 100644 --- a/Clocker/Overall App/Themer.swift +++ b/Clocker/Overall App/Themer.swift @@ -152,7 +152,7 @@ extension Themer { func shutdownImage() -> NSImage { if #available(macOS 10.16, *) { - return symbolImage(for: "ellipsis.circle", nil) + return symbolImage(for: "ellipsis.circle") } if #available(macOS 10.14, *) { @@ -171,7 +171,7 @@ extension Themer { func preferenceImage() -> NSImage { if #available(macOS 10.16, *) { - return symbolImage(for: "gear", nil) + return symbolImage(for: "gear") } if #available(macOS 10.14, *) { @@ -187,13 +187,13 @@ extension Themer { return themeIndex == .light - ? NSImage(named: NSImage.Name("Settings"))! - : NSImage(named: NSImage.Name("Settings-White"))! + ? NSImage(named: NSImage.Name("Settings"))! + : NSImage(named: NSImage.Name("Settings-White"))! } func pinImage() -> NSImage { if #available(macOS 10.16, *) { - return symbolImage(for: "macwindow.on.rectangle", nil) + return symbolImage(for: "macwindow.on.rectangle") } if #available(macOS 10.14, *) { @@ -317,7 +317,7 @@ extension Themer { func sharingImage() -> NSImage { if #available(macOS 10.16, *) { - return symbolImage(for: "square.and.arrow.up.on.square.fill", nil) + return symbolImage(for: "square.and.arrow.up.on.square.fill") } if #available(macOS 10.14, *) { @@ -445,9 +445,14 @@ extension Themer { NSColor(deviceRed: 42.0 / 255.0, green: 55.0 / 255.0, blue: 62.0 / 255.0, alpha: 1.0) } - func symbolImage(for _: String, _: String?) -> NSImage { - // Dummy image for older xcodes - return NSImage(named: NSImage.Name("Calendar Tab Icon"))! -// return NSImage(systemSymbolName: name, accessibilityDescription: accessibilityDescription)! + func symbolImage(for name: String) -> NSImage { + assert(name.count > 0) + + if #available(OSX 10.16, *) { + return NSImage(systemSymbolName: name, accessibilityDescription: name)! + } else { + // Dummy image for older xcodes + return NSImage(named: NSImage.Name("Calendar Tab Icon"))! + } } } diff --git a/Clocker/Panel/ParentPanelController.swift b/Clocker/Panel/ParentPanelController.swift index 79bc020..f98c342 100644 --- a/Clocker/Panel/ParentPanelController.swift +++ b/Clocker/Panel/ParentPanelController.swift @@ -167,9 +167,11 @@ class ParentPanelController: NSWindowController { showDebugVersionViewIfNeccesary() - if #available(macOS 10.16, *) { -// mainTableView.style = .fullWidth - } + #if DEBUG + if #available(macOS 10.16, *) { + mainTableView.style = .fullWidth + } + #endif } private func showDebugVersionViewIfNeccesary() { diff --git a/Clocker/Panel/UI/TimezoneDataSource.swift b/Clocker/Panel/UI/TimezoneDataSource.swift index 42f05a7..c672ea7 100644 --- a/Clocker/Panel/UI/TimezoneDataSource.swift +++ b/Clocker/Panel/UI/TimezoneDataSource.swift @@ -136,7 +136,7 @@ extension TimezoneDataSource: NSTableViewDataSource, NSTableViewDelegate { }) if #available(OSX 10.16, *) { - swipeToDelete.image = Themer.shared().symbolImage(for: "trash.fill", "Trash Button") + swipeToDelete.image = Themer.shared().symbolImage(for: "trash.fill") } else { swipeToDelete.image = NSImage(named: NSImage.Name("Trash")) From 15215af37ec695c60399a237a1d49346b36b567f Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sun, 28 Jun 2020 00:29:20 -0500 Subject: [PATCH 5/5] Correct silly mistake. --- Clocker/AppDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Clocker/AppDelegate.swift b/Clocker/AppDelegate.swift index 6d0dcfb..a79b6b9 100644 --- a/Clocker/AppDelegate.swift +++ b/Clocker/AppDelegate.swift @@ -113,7 +113,7 @@ open class AppDelegate: NSObject, NSApplicationDelegate { let shouldLaunchOnboarding = (DataStore.shared().retrieve(key: CLShowOnboardingFlow) == nil && DataStore.shared().timezones().isEmpty) || ProcessInfo.processInfo.arguments.contains(CLOnboaringTestsLaunchArgument) - shouldLaunchOnboarding ? controller?.launch() : controller?.launch() + shouldLaunchOnboarding ? controller?.launch() : continueUsually() } func continueUsually() {