Settings in profiles do persist between sessions now.

willneedit [10-24-18 - 10:39]
Settings in profiles do persist between sessions now.
Filename
InventoryManager.lua
UI/ProfileEdit.lua
diff --git a/InventoryManager.lua b/InventoryManager.lua
index e7f4f82..78b8407 100644
--- a/InventoryManager.lua
+++ b/InventoryManager.lua
@@ -227,7 +227,7 @@ local function loadProfile(profileData)
 	for k,v in pairs(profileData) do
 		_new[k] = IM.IM_RulesetV2.Clone(v)
     _new[k].name = v.name
-    _new[k].settings = profileData.settings or { }
+    _new[k].settings = v.settings or { }
     _new[k].settings.Version = 3
 	end
 	return _new
diff --git a/UI/ProfileEdit.lua b/UI/ProfileEdit.lua
index a1b3644..4fa64cd 100644
--- a/UI/ProfileEdit.lua
+++ b/UI/ProfileEdit.lua
@@ -126,14 +126,17 @@ end

 function PE:BtnSaveClicked()
 	local profiles = IM.Profiles
-  PE.selectedProfile = PE.reverseProfileList[PE.selectedName]
+	PE.selectedProfile = PE.reverseProfileList[PE.selectedName]
 	if not PE.selectedProfile then
 		PE.selectedProfile = #profiles + 1
 	end

-  local selProfile = IM.currentRuleset:Clone();
-  selProfile.name = PE.selectedName
-  selProfile.settings = IM.settings
+	local selProfile = IM.currentRuleset:Clone();
+	selProfile.name = PE.selectedName
+	selProfile.settings = { }
+	for k,v in pairs(IM.settings or { }) do
+		selProfile.settings[k] = v
+	end
 	profiles[PE.selectedProfile] = selProfile

 	PE:UpdateProfileList(PE.selectedProfile)