aboutsummaryrefslogtreecommitdiff
path: root/source/WindowsFormsApplication1/Shifter.cs
diff options
context:
space:
mode:
authorMichaelTheShifter <[email protected]>2016-05-25 20:50:35 -0400
committerMichaelTheShifter <[email protected]>2016-05-25 20:50:35 -0400
commitc43d82eebd5e71ff5860fb2797bc4ebaa90e541e (patch)
tree89ded82085a904e10a503f3c4454d1ed140fa996 /source/WindowsFormsApplication1/Shifter.cs
parente2d2829ce94c81ad5c36e0fc59cac63438520d67 (diff)
downloadshiftos-c--c43d82eebd5e71ff5860fb2797bc4ebaa90e541e.tar.gz
shiftos-c--c43d82eebd5e71ff5860fb2797bc4ebaa90e541e.tar.bz2
shiftos-c--c43d82eebd5e71ff5860fb2797bc4ebaa90e541e.zip
Release Candidate 2
We're almost there...
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);