mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
fix<Clone>: fix crash after clone a new repository
This commit is contained in:
parent
faffba09c8
commit
79084c9a9a
4 changed files with 12 additions and 9 deletions
|
@ -34,7 +34,8 @@ namespace SourceGit.ViewModels {
|
|||
}
|
||||
|
||||
public void Clone(object param) {
|
||||
var page = param as LauncherPage;
|
||||
var launcher = param as Launcher;
|
||||
var page = launcher.ActivePage;
|
||||
|
||||
if (!Preference.Instance.IsGitConfigured) {
|
||||
App.RaiseException(page.GetId(), App.Text("NotConfigured"));
|
||||
|
@ -42,7 +43,7 @@ namespace SourceGit.ViewModels {
|
|||
}
|
||||
|
||||
if (PopupHost.CanCreatePopup()) {
|
||||
PopupHost.ShowPopup(new Clone(page));
|
||||
PopupHost.ShowPopup(new Clone(launcher, page));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue