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

@ -17,7 +17,8 @@ namespace SourceGit.Views
private async void OpenLocalRepository(object _1, RoutedEventArgs e)
{
if (!ViewModels.PopupHost.CanCreatePopup())
var activePage = App.GetLauncer().ActivePage;
if (activePage == null || !activePage.CanCreatePopup())
return;
var topLevel = TopLevel.GetTopLevel(this);