Fixed duplicated recent repositories entries
This commit is contained in:
parent
1dff1d66b5
commit
b399947734
@ -30,7 +30,7 @@ class AppStateManager @Inject constructor(
|
|||||||
_openRepositoriesPaths[key] = path
|
_openRepositoriesPaths[key] = path
|
||||||
|
|
||||||
// Remove any previously existing path
|
// Remove any previously existing path
|
||||||
_latestOpenedRepositoriesPaths.remove(path)
|
_latestOpenedRepositoriesPaths.removeIf { it == path }
|
||||||
|
|
||||||
// Add the latest one to the beginning
|
// Add the latest one to the beginning
|
||||||
_latestOpenedRepositoriesPaths.add(0, path)
|
_latestOpenedRepositoriesPaths.add(0, path)
|
||||||
|
Loading…
Reference in New Issue
Block a user