|
@@ -7,6 +7,7 @@ using Avalonia.Media.Imaging;
|
|
|
using Avalonia.Platform.Storage;
|
|
using Avalonia.Platform.Storage;
|
|
|
using Avalonia.Threading;
|
|
using Avalonia.Threading;
|
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
|
+using CommunityToolkit.Mvvm.Input;
|
|
|
using DynamicData;
|
|
using DynamicData;
|
|
|
using DynamicData.Binding;
|
|
using DynamicData.Binding;
|
|
|
using FluentAvalonia.UI.Controls;
|
|
using FluentAvalonia.UI.Controls;
|
|
@@ -104,6 +105,13 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|
|
[ObservableProperty] private bool _isSubMenuOpen;
|
|
[ObservableProperty] private bool _isSubMenuOpen;
|
|
|
[ObservableProperty] private ApplicationContextMenu _listAppContextMenu;
|
|
[ObservableProperty] private ApplicationContextMenu _listAppContextMenu;
|
|
|
[ObservableProperty] private ApplicationContextMenu _gridAppContextMenu;
|
|
[ObservableProperty] private ApplicationContextMenu _gridAppContextMenu;
|
|
|
|
|
+ [ObservableProperty] private bool _updateAvailable;
|
|
|
|
|
+
|
|
|
|
|
+ public static AsyncRelayCommand UpdateCommand => Commands.Create(async () =>
|
|
|
|
|
+ {
|
|
|
|
|
+ if (Updater.CanUpdate(true))
|
|
|
|
|
+ await Updater.BeginUpdateAsync(true);
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
private bool _showLoadProgress;
|
|
private bool _showLoadProgress;
|
|
|
private bool _isGameRunning;
|
|
private bool _isGameRunning;
|