enhance: clean search filter when open Welcome page by closing the last opened repository tab

This commit is contained in:
leo 2024-08-25 20:51:53 +08:00
parent d9ba6bc5ec
commit 4f8ccc4563
No known key found for this signature in database

View file

@ -145,6 +145,7 @@ namespace SourceGit.ViewModels
Models.AutoFetchManager.Instance.RemoveRepository(repo.FullPath);
repo.Close();
Welcome.Instance.ClearSearchFilter();
last.Node = new RepositoryNode() { Id = Guid.NewGuid().ToString() };
last.Data = Welcome.Instance;
last.Popup = null;