Fix add profile button removed by mistake

This commit is contained in:
世界 committed 2023-10-06 15:24:02 +08:00
1 parent c5a29e0956
commit 1e262e239a
1 file changed
+11 -1
@@ -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)