mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
refactor: use view locator instead of creating views manually in viewmodels (#1213)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
413669741d
commit
5fd074a9b6
60 changed files with 52 additions and 140 deletions
|
@ -8,7 +8,6 @@ namespace SourceGit.ViewModels
|
|||
public List<object> Targets
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
} = [];
|
||||
|
||||
public bool AutoCommit
|
||||
|
@ -29,7 +28,6 @@ namespace SourceGit.ViewModels
|
|||
Targets.AddRange(commits);
|
||||
AutoCommit = true;
|
||||
Strategy = Models.MergeStrategy.ForMultiple[0];
|
||||
View = new Views.MergeMultiple() { DataContext = this };
|
||||
}
|
||||
|
||||
public MergeMultiple(Repository repo, List<Models.Branch> branches)
|
||||
|
@ -38,7 +36,6 @@ namespace SourceGit.ViewModels
|
|||
Targets.AddRange(branches);
|
||||
AutoCommit = true;
|
||||
Strategy = Models.MergeStrategy.ForMultiple[0];
|
||||
View = new Views.MergeMultiple() { DataContext = this };
|
||||
}
|
||||
|
||||
public override Task<bool> Sure()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue