mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-11 15:59:08 +01:00
Only refresh ListView once items are added
This commit is contained in:
parent
e3f99fb9e3
commit
51a18545e2
@ -101,6 +101,7 @@ namespace DS4Windows
|
||||
foreach (XmlNode x in programslist)
|
||||
programpaths.Add(x.Attributes["path"].Value);
|
||||
|
||||
lVPrograms.BeginUpdate();
|
||||
foreach (string st in programpaths)
|
||||
{
|
||||
if (File.Exists(st))
|
||||
@ -121,6 +122,7 @@ namespace DS4Windows
|
||||
RemoveP(st, false, false);
|
||||
}
|
||||
}
|
||||
lVPrograms.EndUpdate();
|
||||
}
|
||||
|
||||
private void GetApps(string path)
|
||||
@ -188,6 +190,7 @@ namespace DS4Windows
|
||||
}
|
||||
}
|
||||
|
||||
lVPrograms.BeginUpdate();
|
||||
foreach (string st in lodsf)
|
||||
{
|
||||
if (File.Exists(st))
|
||||
@ -200,6 +203,7 @@ namespace DS4Windows
|
||||
lVPrograms.Items.Add(lvi);
|
||||
}
|
||||
}
|
||||
lVPrograms.EndUpdate();
|
||||
|
||||
bnAddPrograms.Text = Properties.Resources.AddPrograms;
|
||||
bnAddPrograms.Enabled = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user