Skip to content

Commit

Permalink
Fixed one last name change issue, and also fixed bug where device nam…
Browse files Browse the repository at this point in the history
…e wouldn't clear on disconnect if device had been renamed from the home screen
  • Loading branch information
xan-m committed Oct 21, 2021
1 parent 22382de commit b2c437f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions InfiniLink.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand All @@ -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;
};
Expand Down
1 change: 1 addition & 0 deletions InfiniLink/View Components/Home View/HomeScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b2c437f

Please sign in to comment.