Skip to content

Commit 4305c1d

Browse files
committed
Fixes bug ApplicationSettingsServiceHandler.Remove() not removing containers
1 parent cac2179 commit 4305c1d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/Cimbalino.Toolkit.Core (WP8)/Services/ApplicationSettingsServiceHandler.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,16 @@ public virtual void Remove(string key)
111111
{
112112
var container = GetContainer(key, out key);
113113

114-
if (container != null && container.Values.ContainsKey(key))
114+
if (container != null)
115115
{
116-
container.Values.Remove(key);
116+
if (container.Values.ContainsKey(key))
117+
{
118+
container.Values.Remove(key);
119+
}
120+
else if (container.Containers.ContainsKey(key))
121+
{
122+
container.DeleteContainer(key);
123+
}
117124
}
118125
}
119126

0 commit comments

Comments
 (0)