Fixed duplicated recent repositories entries

This commit is contained in:
Abdelilah El Aissaoui 2022-06-11 13:37:42 +02:00
parent 1dff1d66b5
commit b399947734

View File

@ -30,7 +30,7 @@ class AppStateManager @Inject constructor(
_openRepositoriesPaths[key] = path
// Remove any previously existing path
_latestOpenedRepositoriesPaths.remove(path)
_latestOpenedRepositoriesPaths.removeIf { it == path }
// Add the latest one to the beginning
_latestOpenedRepositoriesPaths.add(0, path)