From 1319eda8b72caaa035c9097207b29dae402e16d1 Mon Sep 17 00:00:00 2001 From: edisionnano Date: Mon, 8 Feb 2021 01:27:12 +0200 Subject: [PATCH] Fix Updater Icon On Linux (#1995) * Fix Linux Icon * Fix identation * Move the icon to the private constructor --- Ryujinx/Modules/Updater/UpdateDialog.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Ryujinx/Modules/Updater/UpdateDialog.cs b/Ryujinx/Modules/Updater/UpdateDialog.cs index 0b675785..54ffc0a9 100644 --- a/Ryujinx/Modules/Updater/UpdateDialog.cs +++ b/Ryujinx/Modules/Updater/UpdateDialog.cs @@ -5,6 +5,7 @@ using Ryujinx.Ui; using System; using System.Diagnostics; using System.Linq; +using System.Reflection; using System.Runtime.InteropServices; namespace Ryujinx.Modules @@ -32,6 +33,7 @@ namespace Ryujinx.Modules _mainWindow = mainWindow; _buildUrl = buildUrl; + Icon = new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.Resources.Logo_Ryujinx.png"); MainText.Text = "Do you want to update Ryujinx to the latest version?"; SecondaryText.Text = $"{Program.Version} -> {newVersion}"; @@ -86,4 +88,4 @@ namespace Ryujinx.Modules Dispose(); } } -} \ No newline at end of file +}