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:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-03-18 04:10:14 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-03-18 04:10:14 +0300
commit24d29a664710d19107b23a3430995daf648c54ff (patch)
tree4ae59aadb02beeafbe61b94780429c6fdbfaa35e /NesMenuCollection.cs
parent2cfa9b56d436a4a378571071dd16cf15208beacb (diff)
Changed uploading algorithm
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()
{