mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-15 20:26:04 +07:00
vcs: Cleanup "CommitOptionsPanel" - fix warnings
GitOrigin-RevId: f4b9e7dc9ac52393d0399afbafe0d0af07bf2595
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7d695cabb5
commit
fb0f9bb364
@@ -50,7 +50,7 @@ class CommitOptionsPanel(private val actionNameSupplier: () -> String) : BorderL
|
||||
}
|
||||
|
||||
override fun setVisible(vcses: Collection<AbstractVcs<*>>) =
|
||||
perVcsOptionsPanels.forEach { vcs, vcsPanel -> vcsPanel.isVisible = vcs in vcses }
|
||||
perVcsOptionsPanels.forEach { (vcs, vcsPanel) -> vcsPanel.isVisible = vcs in vcses }
|
||||
|
||||
private fun setVcsOptions(newOptions: Map<AbstractVcs<*>, RefreshableOnComponent>) {
|
||||
if (vcsOptions != newOptions) {
|
||||
@@ -59,7 +59,7 @@ class CommitOptionsPanel(private val actionNameSupplier: () -> String) : BorderL
|
||||
vcsOptionsPanel.removeAll()
|
||||
|
||||
vcsOptions += newOptions
|
||||
vcsOptions.forEach { vcs, options ->
|
||||
vcsOptions.forEach { (vcs, options) ->
|
||||
val panel = verticalPanel(vcs.displayName).apply { add(options.component) }
|
||||
vcsOptionsPanel.add(panel)
|
||||
perVcsOptionsPanels[vcs] = panel
|
||||
|
||||
Reference in New Issue
Block a user