center text

fix alignment
comment out ssh_free
fix Face ID appearing on touch id devices
This commit is contained in:
neon443 committed 2025-06-26 13:12:33 +01:00
1 parent 0291c3c613
commit 98e5b01970
4 files changed
+6 -4

No files matched your search

+1 -1
View File
@@ -113,7 +113,7 @@ class HostsManager: ObservableObject, @unchecked Sendable {
return false
}
let reason = "Authenticate yourself with Face ID to view private keys"
let reason = "Authenticate yourself to view private keys"
return await withCheckedContinuation { continuation in
context.evaluatePolicy(.deviceOwnerAuthentication, localizedReason: reason) { success, _ in
continuation.resume(returning: success)
+1 -1
View File
@@ -141,7 +141,7 @@ class SSHHandler: @unchecked Sendable, ObservableObject {
if connected && (ssh_is_connected(session) == 1) {
ssh_disconnect(self.session)
}
ssh_free(self.session)
// ssh_free(self.session)
self.session = nil
}
+3 -1
View File
@@ -22,7 +22,8 @@ struct KeyDetailView: View {
VStack(alignment: .leading) {
Text("Private key")
.bold()
ZStack {
.frame(maxWidth: .infinity)
ZStack(alignment: .center) {
Text(String(data: keypair.privateKey!, encoding: .utf8) ?? "nil")
.blur(radius: reveal ? 0 : 5)
VStack {
@@ -33,6 +34,7 @@ struct KeyDetailView: View {
}
.opacity(reveal ? 0 : 1)
}
.frame(maxWidth: .infinity)
.onTapGesture {
Task {
if !reveal {
+1 -1
View File
@@ -29,7 +29,7 @@ struct KeyManagerView: View {
NavigationLink {
List {
if hostsManager.savedHosts.isEmpty {
VStack(alignment: .center) {
VStack(alignment: .leading) {
Text("Looking empty 'round here...")
.font(.title3)
.bold()
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.