Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'NesMenuCollection.cs')
-rw-r--r--NesMenuCollection.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/NesMenuCollection.cs b/NesMenuCollection.cs
index 0127d2c9..39ff3fe9 100644
--- a/NesMenuCollection.cs
+++ b/NesMenuCollection.cs
@@ -57,6 +57,8 @@ namespace com.clusterrr.hakchi_gui
{
root = new NesMenuCollection();
root.AddRange(this.Where(o => !(o is NesDefaultGame)));
+ if (root.Count == 0)
+ return;
this.RemoveAll(o => !(o is NesDefaultGame));
this.Add(new NesMenuFolder()
{