From fd6ab9fc47193fcf314a79a92547ffcda0757161 Mon Sep 17 00:00:00 2001 From: Terry MacDonald Date: Sun, 7 Nov 2021 14:18:43 +1300 Subject: [PATCH] Fixed shortcut name populating when no game selected Now works as intended. --- DisplayMagician/Properties/AssemblyInfo.cs | 4 ++-- DisplayMagician/UIForms/ShortcutForm.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DisplayMagician/Properties/AssemblyInfo.cs b/DisplayMagician/Properties/AssemblyInfo.cs index 74a7823..a420a45 100644 --- a/DisplayMagician/Properties/AssemblyInfo.cs +++ b/DisplayMagician/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ using System.Resources; [assembly: Guid("e4ceaf5e-ad01-4695-b179-31168eb74c48")] // Version information -[assembly: AssemblyVersion("2.1.0.179")] -[assembly: AssemblyFileVersion("2.1.0.179")] +[assembly: AssemblyVersion("2.1.0.180")] +[assembly: AssemblyFileVersion("2.1.0.180")] [assembly: NeutralResourcesLanguageAttribute( "en" )] [assembly: CLSCompliant(true)] diff --git a/DisplayMagician/UIForms/ShortcutForm.cs b/DisplayMagician/UIForms/ShortcutForm.cs index b7e3b8c..06282c2 100644 --- a/DisplayMagician/UIForms/ShortcutForm.cs +++ b/DisplayMagician/UIForms/ShortcutForm.cs @@ -886,7 +886,7 @@ namespace DisplayMagician.UIForms else if (rb_switch_display_temp.Checked) txt_shortcut_save_name.Text = $"{_profileToUse.Name} (Temporary)"; } - else if (rb_launcher.Checked && txt_game_name.Text.Length > 0) + else if (rb_launcher.Checked && ilv_games.SelectedItems.Count >0) { txt_shortcut_save_name.Text = $"{txt_game_name.Text} ({_profileToUse.Name})"; }