diff options
Diffstat (limited to 'Ryujinx.Ava/Ui/Windows/TitleUpdateWindow.axaml.cs')
| -rw-r--r-- | Ryujinx.Ava/Ui/Windows/TitleUpdateWindow.axaml.cs | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/Ryujinx.Ava/Ui/Windows/TitleUpdateWindow.axaml.cs b/Ryujinx.Ava/Ui/Windows/TitleUpdateWindow.axaml.cs index e465dc6e..4e26ee73 100644 --- a/Ryujinx.Ava/Ui/Windows/TitleUpdateWindow.axaml.cs +++ b/Ryujinx.Ava/Ui/Windows/TitleUpdateWindow.axaml.cs @@ -28,14 +28,14 @@ using Avalonia.Threading; namespace Ryujinx.Ava.Ui.Windows { - public class TitleUpdateWindow : StyleableWindow + public partial class TitleUpdateWindow : StyleableWindow { private readonly string _updateJsonPath; private TitleUpdateMetadata _titleUpdateWindowData; public VirtualFileSystem VirtualFileSystem { get; } - internal AvaloniaList<TitleUpdateModel> TitleUpdates { get; set; } + internal AvaloniaList<TitleUpdateModel> TitleUpdates { get; set; } = new AvaloniaList<TitleUpdateModel>(); public string TitleId { get; } public string TitleName { get; } @@ -84,13 +84,6 @@ namespace Ryujinx.Ava.Ui.Windows this.AttachDevTools(); } - private void InitializeComponent() - { - TitleUpdates = new AvaloniaList<TitleUpdateModel>(); - - AvaloniaXamlLoader.Load(this); - } - private void LoadUpdates() { TitleUpdates.Add(new TitleUpdateModel(default, string.Empty, true)); @@ -154,8 +147,7 @@ namespace Ryujinx.Ava.Ui.Windows { Dispatcher.UIThread.Post(async () => { - await ContentDialogHelper.CreateErrorDialog(this, - LocaleManager.Instance["DialogUpdateAddUpdateErrorMessage"]); + await ContentDialogHelper.CreateErrorDialog(LocaleManager.Instance["DialogUpdateAddUpdateErrorMessage"]); }); } } @@ -163,8 +155,7 @@ namespace Ryujinx.Ava.Ui.Windows { Dispatcher.UIThread.Post(async () => { - await ContentDialogHelper.CreateErrorDialog(this, - string.Format(LocaleManager.Instance["DialogDlcLoadNcaErrorMessage"], ex.Message, path)); + await ContentDialogHelper.CreateErrorDialog(string.Format(LocaleManager.Instance["DialogDlcLoadNcaErrorMessage"], ex.Message, path)); }); } } |
