Fixed shortcut name populating when no game selected

Now works as intended.
This commit is contained in:
Terry MacDonald 2021-11-07 14:18:43 +13:00
parent 10506a6537
commit fd6ab9fc47
2 changed files with 3 additions and 3 deletions

View File

@ -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)]

View File

@ -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})";
}