From 9342c28ce81663234afe0b5a1b2ae33cfa51f572 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Thu, 22 Feb 2018 14:23:30 -0500 Subject: [PATCH] Move settings backup/restore to Common --- .gitmodules | 3 ++ App.xaml.cs | 4 +- Common | 1 + ProcessCpuUsageStatusWindow.csproj | 7 +++- ProcessCpuUsageStatusWindow.sln | 14 +++++++ SettingsExtensions.cs | 63 ------------------------------ WindowSource.cs | 2 +- 7 files changed, 27 insertions(+), 67 deletions(-) create mode 100644 .gitmodules create mode 160000 Common delete mode 100644 SettingsExtensions.cs diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a081308 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "Common"] + path = Common + url = https://github.com/ckaczor/Common.git diff --git a/App.xaml.cs b/App.xaml.cs index 78aec92..a1253dc 100644 --- a/App.xaml.cs +++ b/App.xaml.cs @@ -1,9 +1,9 @@ using FloatingStatusWindowLibrary; using ProcessCpuUsageStatusWindow.Properties; +using Squirrel; using System; using System.Diagnostics; using System.Windows; -using Squirrel; namespace ProcessCpuUsageStatusWindow { @@ -16,7 +16,7 @@ namespace ProcessCpuUsageStatusWindow [STAThread] public static void Main(string[] args) { - SquirrelAwareApp.HandleEvents(onAppUpdate: version => SettingsExtensions.RestoreSettings()); + SquirrelAwareApp.HandleEvents(onAppUpdate: version => Common.Settings.Extensions.RestoreSettings()); var application = new App(); application.InitializeComponent(); diff --git a/Common b/Common new file mode 160000 index 0000000..ecd3717 --- /dev/null +++ b/Common @@ -0,0 +1 @@ +Subproject commit ecd3717eab737ede13023c7c81baa34488a05609 diff --git a/ProcessCpuUsageStatusWindow.csproj b/ProcessCpuUsageStatusWindow.csproj index 07347ea..0f6d33f 100644 --- a/ProcessCpuUsageStatusWindow.csproj +++ b/ProcessCpuUsageStatusWindow.csproj @@ -130,7 +130,6 @@ App.xaml Code - @@ -170,6 +169,12 @@ + + + {17864d82-457d-4a0a-bc10-1d07f2b3a5d6} + Common + +