mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 02:12:58 +08:00
fix: HostDialog title
This commit is contained in:
@@ -467,6 +467,7 @@ class HostTree : JTree(), Disposable {
|
|||||||
property.addActionListener(object : AbstractAction() {
|
property.addActionListener(object : AbstractAction() {
|
||||||
override fun actionPerformed(e: ActionEvent) {
|
override fun actionPerformed(e: ActionEvent) {
|
||||||
val dialog = HostDialog(SwingUtilities.getWindowAncestor(this@HostTree), lastHost)
|
val dialog = HostDialog(SwingUtilities.getWindowAncestor(this@HostTree), lastHost)
|
||||||
|
dialog.title = lastHost.name
|
||||||
dialog.isVisible = true
|
dialog.isVisible = true
|
||||||
val host = dialog.host ?: return
|
val host = dialog.host ?: return
|
||||||
runCatchingHost(host)
|
runCatchingHost(host)
|
||||||
|
|||||||
Reference in New Issue
Block a user