fix: welcome page should use a shared singleton instance to manage and filter repositories (#117)

This commit is contained in:
leo 2024-05-07 14:12:33 +08:00
parent 06ca29b2b2
commit 4af8cc18d2
5 changed files with 5 additions and 11 deletions

View file

@ -27,7 +27,7 @@ namespace SourceGit.ViewModels
public LauncherPage()
{
_node = new RepositoryNode() { Id = Guid.NewGuid().ToString() };
_data = new Welcome();
_data = Welcome.Instance;
}
public LauncherPage(RepositoryNode node, Repository repo)