mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 02:54:20 +01:00
small idx fix to saving an auto-profile entry in cases where new window title is empty.
This commit is contained in:
parent
08779ba1cd
commit
5207d7dee8
@ -361,10 +361,14 @@ namespace DS4Windows.Forms
|
||||
lVPrograms.SelectedItems[0].SubItems[0].Text = Path.GetFileNameWithoutExtension(newPath);
|
||||
lVPrograms.SelectedItems[0].SubItems[1].Text = newPath;
|
||||
if (lVPrograms.SelectedItems[0].SubItems.Count < 3)
|
||||
if(!String.IsNullOrEmpty(newTitle))
|
||||
{
|
||||
if (!String.IsNullOrEmpty(newTitle))
|
||||
lVPrograms.SelectedItems[0].SubItems.Add(newTitle);
|
||||
}
|
||||
else
|
||||
{
|
||||
lVPrograms.SelectedItems[0].SubItems[2].Text = newTitle;
|
||||
}
|
||||
|
||||
if (!String.IsNullOrEmpty(newTitle))
|
||||
lVPrograms.SelectedItems[0].ToolTipText = $"{newPath} [{newTitle}]";
|
||||
|
Loading…
Reference in New Issue
Block a user