refactor: merge ViewModels.PopupHost into ViewModels.LauncherPage

This commit is contained in:
leo 2025-01-08 21:36:49 +08:00
parent 0e34a77add
commit f06b1d5d51
No known key found for this signature in database
14 changed files with 342 additions and 344 deletions

View file

@ -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;
}