feat: 改进事件系统与全局快捷键 (#62)

This commit is contained in:
hstyi
2025-01-15 14:54:39 +08:00
committed by GitHub
parent a71493e52c
commit 45ea822fd6
137 changed files with 2860 additions and 1032 deletions

View File

@@ -14,7 +14,7 @@ class EditHostOptionsPane(private val host: Host) : HostOptionsPane() {
generalOption.remarkTextArea.text = host.remark
generalOption.authenticationTypeComboBox.selectedItem = host.authentication.type
if (host.authentication.type == AuthenticationType.PublicKey) {
val ohKeyPair = KeyManager.instance.getOhKeyPair(host.authentication.password)
val ohKeyPair = KeyManager.getInstance().getOhKeyPair(host.authentication.password)
if (ohKeyPair != null) {
generalOption.publicKeyTextField.text = ohKeyPair.name
generalOption.publicKeyTextField.putClientProperty(OhKeyPair::class, ohKeyPair)