mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
refactor: merge ViewModels.PopupHost
into ViewModels.LauncherPage
This commit is contained in:
parent
0e34a77add
commit
f06b1d5d51
14 changed files with 342 additions and 344 deletions
|
@ -16,8 +16,9 @@ namespace SourceGit.ViewModels
|
|||
private set;
|
||||
}
|
||||
|
||||
public Init(string path, RepositoryNode parent, string reason)
|
||||
public Init(string pageId, string path, RepositoryNode parent, string reason)
|
||||
{
|
||||
_pageId = pageId;
|
||||
_targetPath = path;
|
||||
_parentNode = parent;
|
||||
|
||||
|
@ -31,7 +32,7 @@ namespace SourceGit.ViewModels
|
|||
|
||||
return Task.Run(() =>
|
||||
{
|
||||
var succ = new Commands.Init(HostPageId, _targetPath).Exec();
|
||||
var succ = new Commands.Init(_pageId, _targetPath).Exec();
|
||||
if (!succ)
|
||||
return false;
|
||||
|
||||
|
@ -46,6 +47,7 @@ namespace SourceGit.ViewModels
|
|||
});
|
||||
}
|
||||
|
||||
private string _pageId = null;
|
||||
private string _targetPath = null;
|
||||
private RepositoryNode _parentNode = null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue