Skip to content

Commit ddb879d

Browse files
authored
Merge pull request #5 from bjorkert/move_line
Allow independent application of PR 1988 and PR 2002
2 parents 8690722 + fedc047 commit ddb879d

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

profile/pr2002_profile.patch

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
Submodule Loop contains modified content
22
diff --git a/Loop/Loop/Views/SettingsView.swift b/Loop/Loop/Views/SettingsView.swift
3-
index 90859273..8959a843 100644
3+
index 90859273..187a17c1 100644
44
--- a/Loop/Loop/Views/SettingsView.swift
55
+++ b/Loop/Loop/Views/SettingsView.swift
6-
@@ -28,6 +28,7 @@ public struct SettingsView: View {
6+
@@ -24,6 +24,7 @@ public struct SettingsView: View {
7+
@ObservedObject var viewModel: SettingsViewModel
8+
@ObservedObject var versionUpdateViewModel: VersionUpdateViewModel
9+
10+
+ @State private var profilesIsPresented: Bool = false
11+
@State private var pumpChooserIsPresented: Bool = false
712
@State private var cgmChooserIsPresented: Bool = false
813
@State private var serviceChooserIsPresented: Bool = false
9-
@State private var therapySettingsIsPresented: Bool = false
10-
+ @State private var profilesIsPresented: Bool = false
11-
@State private var deletePumpDataAlertIsPresented = false
12-
@State private var deleteCGMDataAlertIsPresented = false
13-
1414
@@ -150,7 +151,11 @@ extension SettingsView {
1515
}
1616
}
@@ -142,7 +142,7 @@ index 6b13fc8..564ff13 100644
142142
B41A60AF23D1DB5B00636320 /* TableViewTitleLabel.swift in Sources */,
143143
diff --git a/LoopKit/LoopKitUI/ViewModels/ProfileViewModel+FileManagement.swift b/LoopKit/LoopKitUI/ViewModels/ProfileViewModel+FileManagement.swift
144144
new file mode 100644
145-
index 0000000..fba4396
145+
index 0000000..a809073
146146
--- /dev/null
147147
+++ b/LoopKit/LoopKitUI/ViewModels/ProfileViewModel+FileManagement.swift
148148
@@ -0,0 +1,232 @@
@@ -380,7 +380,7 @@ index 0000000..fba4396
380380
+}
381381
diff --git a/LoopKit/LoopKitUI/ViewModels/ProfileViewModel.swift b/LoopKit/LoopKitUI/ViewModels/ProfileViewModel.swift
382382
new file mode 100644
383-
index 0000000..a0bdadb
383+
index 0000000..7799d32
384384
--- /dev/null
385385
+++ b/LoopKit/LoopKitUI/ViewModels/ProfileViewModel.swift
386386
@@ -0,0 +1,74 @@
@@ -460,7 +460,7 @@ index 0000000..a0bdadb
460460
+}
461461
diff --git a/LoopKit/LoopKitUI/Views/Settings Editors/NewProfileEditor.swift b/LoopKit/LoopKitUI/Views/Settings Editors/NewProfileEditor.swift
462462
new file mode 100644
463-
index 0000000..4fcbea1
463+
index 0000000..446910e
464464
--- /dev/null
465465
+++ b/LoopKit/LoopKitUI/Views/Settings Editors/NewProfileEditor.swift
466466
@@ -0,0 +1,79 @@
@@ -545,7 +545,7 @@ index 0000000..4fcbea1
545545
+}
546546
diff --git a/LoopKit/LoopKitUI/Views/Settings Editors/ProfilePreviewView.swift b/LoopKit/LoopKitUI/Views/Settings Editors/ProfilePreviewView.swift
547547
new file mode 100644
548-
index 0000000..c86eb4f
548+
index 0000000..a056915
549549
--- /dev/null
550550
+++ b/LoopKit/LoopKitUI/Views/Settings Editors/ProfilePreviewView.swift
551551
@@ -0,0 +1,277 @@
@@ -828,7 +828,7 @@ index 0000000..c86eb4f
828828
+}
829829
diff --git a/LoopKit/LoopKitUI/Views/Settings Editors/ProfileView.swift b/LoopKit/LoopKitUI/Views/Settings Editors/ProfileView.swift
830830
new file mode 100644
831-
index 0000000..999bd8e
831+
index 0000000..7bc6159
832832
--- /dev/null
833833
+++ b/LoopKit/LoopKitUI/Views/Settings Editors/ProfileView.swift
834834
@@ -0,0 +1,115 @@

profile/pr2002_profile_dev.patch

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
Submodule Loop contains modified content
22
diff --git a/Loop/Loop/Views/SettingsView.swift b/Loop/Loop/Views/SettingsView.swift
3-
index dc3f6ec3..8b38a7e3 100644
3+
index dc3f6ec3..61b65f0e 100644
44
--- a/Loop/Loop/Views/SettingsView.swift
55
+++ b/Loop/Loop/Views/SettingsView.swift
6-
@@ -28,6 +28,7 @@ public struct SettingsView: View {
6+
@@ -24,6 +24,7 @@ public struct SettingsView: View {
7+
@ObservedObject var viewModel: SettingsViewModel
8+
@ObservedObject var versionUpdateViewModel: VersionUpdateViewModel
9+
10+
+ @State private var profilesIsPresented: Bool = false
11+
@State private var pumpChooserIsPresented: Bool = false
712
@State private var cgmChooserIsPresented: Bool = false
813
@State private var serviceChooserIsPresented: Bool = false
9-
@State private var therapySettingsIsPresented: Bool = false
10-
+ @State private var profilesIsPresented: Bool = false
11-
@State private var deletePumpDataAlertIsPresented = false
12-
@State private var deleteCGMDataAlertIsPresented = false
13-
1414
@@ -198,6 +199,10 @@ extension SettingsView {
1515
}
1616
}

0 commit comments

Comments
 (0)