From 615a200f65e767e9e34773b81ae911725500c156 Mon Sep 17 00:00:00 2001 From: DaFuqtor <46137336+DaFuqtor@users.noreply.github.com> Date: Sat, 1 Feb 2020 12:03:06 +0300 Subject: [PATCH] fixed fatal error now ready to release, working for all users --- 2FA to Tray.xcodeproj/project.pbxproj | 8 ++++---- 2FA to Tray/AppDelegate.swift | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/2FA to Tray.xcodeproj/project.pbxproj b/2FA to Tray.xcodeproj/project.pbxproj index 5d79545..10dd67f 100644 --- a/2FA to Tray.xcodeproj/project.pbxproj +++ b/2FA to Tray.xcodeproj/project.pbxproj @@ -293,14 +293,14 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 5; + CURRENT_PROJECT_VERSION = 6; DEVELOPMENT_TEAM = R2294BC6J8; INFOPLIST_FILE = "2FA to Tray/Info.plist"; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 1.2.2; + MARKETING_VERSION = 1.3; PRODUCT_BUNDLE_IDENTIFIER = com.dafuqtor.2FAtoTray; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; @@ -315,14 +315,14 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 5; + CURRENT_PROJECT_VERSION = 6; DEVELOPMENT_TEAM = R2294BC6J8; INFOPLIST_FILE = "2FA to Tray/Info.plist"; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 1.2.2; + MARKETING_VERSION = 1.3; PRODUCT_BUNDLE_IDENTIFIER = com.dafuqtor.2FAtoTray; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; diff --git a/2FA to Tray/AppDelegate.swift b/2FA to Tray/AppDelegate.swift index b4794a9..ea675e9 100644 --- a/2FA to Tray/AppDelegate.swift +++ b/2FA to Tray/AppDelegate.swift @@ -182,9 +182,9 @@ class OTP { textfield.becomeFirstResponder() } - let theSecret = keychain["secret"] - if !theSecret!.isEmpty { - textfield.stringValue = theSecret! + let theSecret = keychain["secret"] ?? "" + if !theSecret.isEmpty { + textfield.stringValue = theSecret } let response = alert.runModal()