aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx/Ui/RendererWidgetBase.cs
diff options
context:
space:
mode:
authorgnisman <gleb.nisman@gmail.com>2023-12-04 18:52:25 +0200
committerGitHub <noreply@github.com>2023-12-04 17:52:25 +0100
commit93aeecc4f337325ed11e3a0a72dd85768db6618f (patch)
treeef79566a77502043bbafe141cb24b64d85420abe /src/Ryujinx/Ui/RendererWidgetBase.cs
parent2989c163a891c4ac730e799e1457b1bfb2ecc028 (diff)
Improve indication of emulation being paused by the User (#5836)1.1.1096
* Improve indication of emulation being paused by the User * Use localised for Paused * Backup original title - PR comments fix * Add common helper method to assemble App title
Diffstat (limited to 'src/Ryujinx/Ui/RendererWidgetBase.cs')
-rw-r--r--src/Ryujinx/Ui/RendererWidgetBase.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Ryujinx/Ui/RendererWidgetBase.cs b/src/Ryujinx/Ui/RendererWidgetBase.cs
index 6a68a792..6ae122a0 100644
--- a/src/Ryujinx/Ui/RendererWidgetBase.cs
+++ b/src/Ryujinx/Ui/RendererWidgetBase.cs
@@ -11,6 +11,7 @@ using Ryujinx.Input;
using Ryujinx.Input.GTK3;
using Ryujinx.Input.HLE;
using Ryujinx.Ui.Common.Configuration;
+using Ryujinx.Ui.Common.Helper;
using Ryujinx.Ui.Widgets;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Formats.Png;
@@ -525,12 +526,7 @@ namespace Ryujinx.Ui
var activeProcess = Device.Processes.ActiveApplication;
- string titleNameSection = string.IsNullOrWhiteSpace(activeProcess.Name) ? string.Empty : $" {activeProcess.Name}";
- string titleVersionSection = string.IsNullOrWhiteSpace(activeProcess.DisplayVersion) ? string.Empty : $" v{activeProcess.DisplayVersion}";
- string titleIdSection = $" ({activeProcess.ProgramIdText.ToUpper()})";
- string titleArchSection = activeProcess.Is64Bit ? " (64-bit)" : " (32-bit)";
-
- parent.Title = $"Ryujinx {Program.Version} -{titleNameSection}{titleVersionSection}{titleIdSection}{titleArchSection}";
+ parent.Title = TitleHelper.ActiveApplicationTitle(activeProcess, Program.Version);
});
Thread renderLoopThread = new(Render)