mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 13:14: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
|
@ -138,8 +138,8 @@ namespace SourceGit.ViewModels
|
|||
drop.Header = App.Text("StashCM.Drop");
|
||||
drop.Click += (_, ev) =>
|
||||
{
|
||||
if (PopupHost.CanCreatePopup())
|
||||
PopupHost.ShowPopup(new DropStash(_repo.FullPath, stash));
|
||||
if (_repo.CanCreatePopup())
|
||||
_repo.ShowPopup(new DropStash(_repo.FullPath, stash));
|
||||
|
||||
ev.Handled = true;
|
||||
};
|
||||
|
@ -221,8 +221,8 @@ namespace SourceGit.ViewModels
|
|||
|
||||
public void Clear()
|
||||
{
|
||||
if (PopupHost.CanCreatePopup())
|
||||
PopupHost.ShowPopup(new ClearStashes(_repo));
|
||||
if (_repo.CanCreatePopup())
|
||||
_repo.ShowPopup(new ClearStashes(_repo));
|
||||
}
|
||||
|
||||
public void ClearSearchFilter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue