Fix add profile button removed by mistake

This commit is contained in:
世界
2023-10-06 15:24:02 +08:00
parent c5a29e0956
commit 1e262e239a
@@ -139,7 +139,17 @@ public struct ProfileView: View {
// await doReload()
// }
}
#if os(iOS)
#if os(macOS)
.toolbar {
ToolbarItem {
Button {
openWindow(id: NewProfileView.windowID)
} label: {
Label("New Profile", systemImage: "plus.square.fill")
}
}
}
#elseif os(iOS)
.toolbar {
ToolbarItem(placement: .navigationBarTrailing) {
EditButton().disabled(profileList.isEmpty)