From b2c437f7123196fdd986cb41062f8ec345b8b14b Mon Sep 17 00:00:00 2001 From: xan-m Date: Thu, 21 Oct 2021 10:10:43 -0700 Subject: [PATCH] Fixed one last name change issue, and also fixed bug where device name wouldn't clear on disconnect if device had been renamed from the home screen --- InfiniLink.xcodeproj/project.pbxproj | 8 ++++---- InfiniLink/View Components/Home View/HomeScreen.swift | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/InfiniLink.xcodeproj/project.pbxproj b/InfiniLink.xcodeproj/project.pbxproj index 46e6e42..3742eef 100644 --- a/InfiniLink.xcodeproj/project.pbxproj +++ b/InfiniLink.xcodeproj/project.pbxproj @@ -807,10 +807,10 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 0.9.2; - PRODUCT_BUNDLE_IDENTIFIER = "com.alexemry.Infini-iOS"; + PRODUCT_BUNDLE_IDENTIFIER = com.alexemry.InfiniLink; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; + TARGETED_DEVICE_FAMILY = 1; }; name = Debug; }; @@ -831,10 +831,10 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 0.9.2; - PRODUCT_BUNDLE_IDENTIFIER = "com.alexemry.Infini-iOS"; + PRODUCT_BUNDLE_IDENTIFIER = com.alexemry.InfiniLink; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; + TARGETED_DEVICE_FAMILY = 1; }; name = Release; }; diff --git a/InfiniLink/View Components/Home View/HomeScreen.swift b/InfiniLink/View Components/Home View/HomeScreen.swift index e4980b2..e394815 100644 --- a/InfiniLink/View Components/Home View/HomeScreen.swift +++ b/InfiniLink/View Components/Home View/HomeScreen.swift @@ -41,6 +41,7 @@ struct HomeScreen: View { if renamingDevice { TextField(deviceName, text: $changedName, onCommit: { nameManager.updateName(deviceUUID: bleManager.infiniTime.identifier.uuidString, name: changedName) + renamingDevice = false }) .onAppear() { deviceName = String(DeviceNameManager().getName(deviceUUID: bleManager.infiniTime.identifier.uuidString).isEmpty ? "InfiniTime" : DeviceNameManager().getName(deviceUUID: bleManager.infiniTime.identifier.uuidString))