User: rednesto Date: 17 Oct 23 05:10 Revision: 84b0da56e07748f6c57233b5152fb41cf876a8df Summary: Fix the Stable channel always selected in the channel dialog TeamCity URL: http://ci.mcdev.io:80/viewModification.html?tab=vcsModificationFiles&modId=8819&personal=false Index: src/main/kotlin/update/ConfigurePluginUpdatesDialog.kt =================================================================== --- src/main/kotlin/update/ConfigurePluginUpdatesDialog.kt (revision f0e8b919ddbf611f73a3b6f3e6ccae1e2707d451) +++ src/main/kotlin/update/ConfigurePluginUpdatesDialog.kt (revision 84b0da56e07748f6c57233b5152fb41cf876a8df) @@ -91,8 +91,6 @@ channelBox.component.addItem(channels.title) } - channelBox.component.selectedIndex = initialSelectedChannel - Channels.values().forEachIndexed { i, channel -> if (channel.hasChannel()) { initialSelectedChannel = i + 1 @@ -100,6 +98,8 @@ } } + channelBox.component.selectedIndex = initialSelectedChannel + channelBox.component.addActionListener { resetUpdateStatus() } updateCheckInProgressIcon.component.isVisible = false init()