From c09d16139590dd712c9843fb2194f3f93557fd8b Mon Sep 17 00:00:00 2001 From: Nathan Racklyeft Date: Sun, 26 Jun 2016 21:01:17 -0700 Subject: [PATCH 1/2] Fixing unpersisted insulin data source preference --- Loop/Extensions/NSUserDefaults.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Loop/Extensions/NSUserDefaults.swift b/Loop/Extensions/NSUserDefaults.swift index 3bb2c02186..bbbe068198 100644 --- a/Loop/Extensions/NSUserDefaults.swift +++ b/Loop/Extensions/NSUserDefaults.swift @@ -150,7 +150,7 @@ extension NSUserDefaults { return InsulinDataSource(rawValue: integerForKey(Key.PreferredInsulinDataSource.rawValue)) } set { - if let preferredInsulinDataSource = preferredInsulinDataSource { + if let preferredInsulinDataSource = newValue { setInteger(preferredInsulinDataSource.rawValue, forKey: Key.PreferredInsulinDataSource.rawValue) } else { removeObjectForKey(Key.PreferredInsulinDataSource.rawValue) From 6b67fdd59a7402e6a49381c6b94c767879d5ebeb Mon Sep 17 00:00:00 2001 From: Nathan Racklyeft Date: Sun, 26 Jun 2016 21:35:27 -0700 Subject: [PATCH 2/2] new-marketing-version 0.4.1 --- Loop/Info.plist | 2 +- LoopTests/Info.plist | 2 +- WatchApp Extension/Info.plist | 2 +- WatchApp/Info.plist | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Loop/Info.plist b/Loop/Info.plist index a1e7cea32c..ca8b5755a3 100644 --- a/Loop/Info.plist +++ b/Loop/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.4.0 + 0.4.1 CFBundleSignature ???? CFBundleVersion diff --git a/LoopTests/Info.plist b/LoopTests/Info.plist index e82cdb5f9e..e7ba0f3fa0 100644 --- a/LoopTests/Info.plist +++ b/LoopTests/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 0.4.0 + 0.4.1 CFBundleSignature ???? CFBundleVersion diff --git a/WatchApp Extension/Info.plist b/WatchApp Extension/Info.plist index 65d1385130..0ba94752ab 100644 --- a/WatchApp Extension/Info.plist +++ b/WatchApp Extension/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType XPC! CFBundleShortVersionString - 0.4.0 + 0.4.1 CFBundleSignature ???? CFBundleVersion diff --git a/WatchApp/Info.plist b/WatchApp/Info.plist index 8438205d72..e42c5d6432 100644 --- a/WatchApp/Info.plist +++ b/WatchApp/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.4.0 + 0.4.1 CFBundleSignature ???? CFBundleVersion