From b399947734db7f2fc0cfd53dfaa710c894045246 Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Sat, 11 Jun 2022 13:37:42 +0200 Subject: [PATCH] Fixed duplicated recent repositories entries --- src/main/kotlin/app/AppStateManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/AppStateManager.kt b/src/main/kotlin/app/AppStateManager.kt index 79482a5..945b488 100644 --- a/src/main/kotlin/app/AppStateManager.kt +++ b/src/main/kotlin/app/AppStateManager.kt @@ -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)