fix: HostDialog title

This commit is contained in:
hstyi
2025-02-14 20:54:00 +08:00
committed by hstyi
parent a25b97614f
commit bdc0a15439

View File

@@ -467,6 +467,7 @@ class HostTree : JTree(), Disposable {
property.addActionListener(object : AbstractAction() {
override fun actionPerformed(e: ActionEvent) {
val dialog = HostDialog(SwingUtilities.getWindowAncestor(this@HostTree), lastHost)
dialog.title = lastHost.name
dialog.isVisible = true
val host = dialog.host ?: return
runCatchingHost(host)