This commit is contained in:
世界
2023-07-27 11:31:48 +08:00
parent 2bd462c789
commit 5a8f3a770f
4 changed files with 5 additions and 5 deletions
@@ -31,6 +31,7 @@ public struct GroupListView: View {
Text("Empty groups")
}
}
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .center)
.onAppear(perform: doReload)
.onDisappear {
connectTask?.cancel()
@@ -216,6 +216,6 @@ public struct NewProfileView: View {
remoteURL = remotePath
lastUpdated = .now
}
try ProfileManager.create(Profile(name: profileName, type: profileType, path: savePath, remoteURL: remoteURL))
try ProfileManager.create(Profile(name: profileName, type: profileType, path: savePath, remoteURL: remoteURL, lastUpdated: lastUpdated))
}
}