perf(gtk): avoid replacing listModel twice

This commit is contained in:
Johannes Frohnmeyer 2024-10-04 17:47:14 +02:00
parent ac6099f813
commit 4dfcbb038d
Signed by: Johannes
GPG Key ID: E76429612C2929F4

View File

@ -95,7 +95,6 @@ class ModsTab(window: InstanceSettingsWindow) : SettingsTab<Leaflet, InstanceSet
toShow.add(mod.name)
}
}
listModel.replaceAll(mods.map { it.name }.toTypedArray())
} else {
loadingRevealer.setRunning(searchResult == null || !mds.isComplete(ScanStage.CROSSREFERENCE))
loadingRevealer.pulse()