aboutsummaryrefslogtreecommitdiff
path: root/source/WindowsFormsApplication1/Shifter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'source/WindowsFormsApplication1/Shifter.cs')
-rw-r--r--source/WindowsFormsApplication1/Shifter.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/WindowsFormsApplication1/Shifter.cs b/source/WindowsFormsApplication1/Shifter.cs
index 43ba200..25e4dd2 100644
--- a/source/WindowsFormsApplication1/Shifter.cs
+++ b/source/WindowsFormsApplication1/Shifter.cs
@@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
+using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -482,6 +483,7 @@ namespace ShiftOS
public void GrabSkinData()
{
+ Skinning.Utilities.SavePanels();
string json = JsonConvert.SerializeObject(API.CurrentSkin);
CustomizingSkin = JsonConvert.DeserializeObject<Skinning.Skin>(json);
GetAllImages();
@@ -625,6 +627,8 @@ namespace ShiftOS
Skinning.Utilities.loadedSkin = CustomizingSkin;
Skinning.Utilities.loadedskin_images = CustomizingImages;
+ API.CurrentSkin.DesktopPanels = JsonConvert.DeserializeObject<List<Skinning.DesktopPanel>>(File.ReadAllText(Paths.LoadedSkin + "panels.json"));
+ Skinning.Utilities.LoadPanels();
Skinning.Utilities.saveimages();
Skinning.Utilities.saveskin();
API.AddCodepoints(codepointstogive);