mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[github] Preselection and focus in select github account dialog
This commit is contained in:
+3
@@ -58,6 +58,7 @@ class GithubChooseAccountDialog(project: Project?, parentComponent: JComponent?,
|
||||
this.title = title
|
||||
setOKButtonText(okText)
|
||||
init()
|
||||
accountsList.selectedIndex = 0
|
||||
}
|
||||
|
||||
override fun doValidate(): ValidationInfo? {
|
||||
@@ -74,4 +75,6 @@ class GithubChooseAccountDialog(project: Project?, parentComponent: JComponent?,
|
||||
.addToCenter(JBScrollPane(accountsList).apply { preferredSize = JBDimension(150, 80) })
|
||||
.apply { setDefaultCheckBox?.run(::addToBottom) }
|
||||
}
|
||||
|
||||
override fun getPreferredFocusedComponent() = accountsList
|
||||
}
|
||||
Reference in New Issue
Block a user