Skip to content

Commit

Permalink
Move topItem to interpolated string
Browse files Browse the repository at this point in the history
Move playing status to interpolated string
  • Loading branch information
BitesizedLion committed Dec 21, 2022
1 parent f24673d commit a294bbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static async Task StartWebServer()
var gameEvent = JsonConvert.DeserializeObject<GameEvent>(requestBody);
var songData = gameEvent.Data.Frame;

trayIcon.ContextMenuStrip.Items[1].Text = songData.State == "playing" ? "Status: playing " + songData.Title : "Status: paused";
trayIcon.ContextMenuStrip.Items[1].Text = songData.State == "playing" ? $"Status: playing {songData.Title}" : "Status: paused";

// Update the presence with the data from the request
if (rpcEnabled)
Expand Down Expand Up @@ -177,7 +177,7 @@ static void CreateTrayIcon()

var menu = new ContextMenuStrip();

var topItem = new ToolStripMenuItem("Tidal RPC, by BitesizedLion v" + Assembly.GetExecutingAssembly().GetName().Version)
var topItem = new ToolStripMenuItem($"Tidal RPC, by BitesizedLion v{Assembly.GetExecutingAssembly().GetName().Version}")
{
Enabled = false,
Image = Icon.ExtractAssociatedIcon(Application.ExecutablePath).ToBitmap()
Expand Down

0 comments on commit a294bbd

Please sign in to comment.