Merge pull request #17 from firenoo/master

Fix disappearing bind button when renaming search
This commit is contained in:
Yang Xizhi authored and GitHub committed 2023-02-23 12:25:12 +08:00
commit e4bcaaf9fe
1 file changed
+1 -1
@@ -44,7 +44,7 @@ class GuiAdvancedMemoryCard(msg: S2CListP2P) : GuiScreen(), TextureBound {
private var sortedInfo = infos.toList()
private var selectedInfo: InfoWrapper?
get() = sortedInfo.find { it.index == selectedIndex }
get() = infos.find { it.index == selectedIndex }
set(value) {
selectedIndex = value?.index ?: -1
}