From ec4ffa57445b1d5cd4804bf6a70e6bcf6c43d939 Mon Sep 17 00:00:00 2001 From: DaFuqtor <46137336+DaFuqtor@users.noreply.github.com> Date: Sat, 29 Feb 2020 09:18:24 +0300 Subject: [PATCH] fixed fatal error --- 2FA to Tray.xcodeproj/project.pbxproj | 8 ++++---- 2FA to Tray/StatusMenuController.swift | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/2FA to Tray.xcodeproj/project.pbxproj b/2FA to Tray.xcodeproj/project.pbxproj index c07e108..cd791a9 100644 --- a/2FA to Tray.xcodeproj/project.pbxproj +++ b/2FA to Tray.xcodeproj/project.pbxproj @@ -396,7 +396,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 15; + CURRENT_PROJECT_VERSION = 16; DEVELOPMENT_TEAM = R2294BC6J8; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = "2FA to Tray/Info.plist"; @@ -404,7 +404,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 1.4.8; + MARKETING_VERSION = 1.4.8.1; PRODUCT_BUNDLE_IDENTIFIER = com.dafuqtor.2FAtoTray; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -421,7 +421,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 15; + CURRENT_PROJECT_VERSION = 16; DEVELOPMENT_TEAM = R2294BC6J8; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = "2FA to Tray/Info.plist"; @@ -429,7 +429,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 1.4.8; + MARKETING_VERSION = 1.4.8.1; PRODUCT_BUNDLE_IDENTIFIER = com.dafuqtor.2FAtoTray; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/2FA to Tray/StatusMenuController.swift b/2FA to Tray/StatusMenuController.swift index 449ec37..886221d 100644 --- a/2FA to Tray/StatusMenuController.swift +++ b/2FA to Tray/StatusMenuController.swift @@ -330,7 +330,7 @@ class StatusMenuController: NSObject, NSMenuDelegate { var newInstIndex = 0 for bunch in dataArray { - let theBunch = (bunch as! Array) + let theBunch = (bunch is String) ? [bunch, "Account", 6] as [Any] : (bunch as! Array) let theSecret = (theBunch[0] as! String).condenseWhitespace() let theName = (theBunch[1] as! String).condenseWhitespace()