refactor: use view locator instead of creating views manually in viewmodels (#1213)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-04-19 11:14:19 +08:00
parent 413669741d
commit 5fd074a9b6
No known key found for this signature in database
60 changed files with 52 additions and 140 deletions

View file

@ -7,13 +7,11 @@ namespace SourceGit.ViewModels
public Models.Branch Local
{
get;
private set;
}
public Models.Branch To
{
get;
private set;
}
public FastForwardWithoutCheckout(Repository repo, Models.Branch local, Models.Branch upstream)
@ -21,7 +19,6 @@ namespace SourceGit.ViewModels
_repo = repo;
Local = local;
To = upstream;
View = new Views.FastForwardWithoutCheckout() { DataContext = this };
}
public override Task<bool> Sure()