Skip to content

Commit

Permalink
fix: unable to exit edit mode after deleting the last profile on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
xfqz86 committed Jun 12, 2024
1 parent 679939b commit ee5e543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ApplicationLibrary/Views/Profile/ProfileView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public struct ProfileView: View {
#if os(iOS)
.toolbar {
ToolbarItem(placement: .navigationBarTrailing) {
EditButton().disabled(profileList.isEmpty)
EditButton().disabled(profileList.isEmpty && !editMode.isEditing)
}
}
#elseif os(tvOS)
Expand Down

0 comments on commit ee5e543

Please sign in to comment.