misc: Use a few static helpers for Avalonia objects

This commit is contained in:
Evan Husted
2024-12-31 00:19:23 -06:00
parent 0cd09ea0c5
commit e43d899e1d
4 changed files with 4 additions and 15 deletions

View File

@ -86,10 +86,7 @@ namespace Ryujinx.Ava.UI.ViewModels
_modJsonPath = Path.Combine(AppDataManager.GamesDirPath, applicationId.ToString("x16"), "mods.json");
if (Application.Current.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
_storageProvider = desktop.MainWindow.StorageProvider;
}
_storageProvider = RyujinxApp.MainWindow.StorageProvider;
LoadMods(applicationId);
}