mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git] Ensure that tree updates are executed in EDT
GitOrigin-RevId: 7515bda1cf43454f129952087c902c80cbb4caf1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6801c8d52f
commit
3d769fd496
@@ -57,15 +57,21 @@ internal class BranchesDashboardController(
|
||||
Disposer.register(ui, this)
|
||||
project.messageBus.connect(this).subscribe(DvcsBranchManager.DVCS_BRANCH_SETTINGS_CHANGED, object : DvcsBranchManagerListener {
|
||||
override fun branchFavoriteSettingsChanged() {
|
||||
updateBranchesIsFavoriteState()
|
||||
runInEdt {
|
||||
updateBranchesIsFavoriteState()
|
||||
}
|
||||
}
|
||||
|
||||
override fun branchGroupingSettingsChanged(key: GroupingKey, state: Boolean) {
|
||||
toggleGrouping(key, state)
|
||||
runInEdt {
|
||||
ui.toggleGrouping(key, state)
|
||||
}
|
||||
}
|
||||
|
||||
override fun showTagsSettingsChanged(state: Boolean) {
|
||||
ui.updateBranchesTree(false)
|
||||
runInEdt {
|
||||
ui.updateBranchesTree(false)
|
||||
}
|
||||
}
|
||||
})
|
||||
project.messageBus.connect(this).subscribe(GitTagHolder.GIT_TAGS_LOADED, GitTagLoaderListener {
|
||||
@@ -92,10 +98,6 @@ internal class BranchesDashboardController(
|
||||
ui.navigateToSelection(selection, true)
|
||||
}
|
||||
|
||||
fun toggleGrouping(key: GroupingKey, state: Boolean) {
|
||||
ui.toggleGrouping(key, state)
|
||||
}
|
||||
|
||||
fun getSelectedRemotes(): Map<GitRepository, Set<GitRemote>> {
|
||||
val selectedRemotes = ui.getSelection().selectedRemotes
|
||||
if (selectedRemotes.isEmpty()) return emptyMap()
|
||||
|
||||
Reference in New Issue
Block a user