diff --git a/.gitmodules b/.gitmodules index 1faa47f..153f48f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,6 +4,3 @@ [submodule "Service/openhardwaremonitor"] path = Service/openhardwaremonitor url = https://github.com/openhardwaremonitor/openhardwaremonitor.git -[submodule "Window/FloatingStatusWindow"] - path = Window/FloatingStatusWindow - url = https://github.com/ckaczor/FloatingStatusWindow.git diff --git a/Service/Common b/Service/Common index 81ef8f4..686f339 160000 --- a/Service/Common +++ b/Service/Common @@ -1 +1 @@ -Subproject commit 81ef8f451c5ceada2ed704ecaaa789e623a7352d +Subproject commit 686f33982df1414d062892e408318b81c0fcf0bf diff --git a/Service/SystemTemperatureService.csproj b/Service/SystemTemperatureService.csproj index 0e37c45..ec73d9e 100644 --- a/Service/SystemTemperatureService.csproj +++ b/Service/SystemTemperatureService.csproj @@ -77,7 +77,7 @@ - 2.7.2 + 2.8.1 diff --git a/SystemTemperatureStatusWindow.sln b/SystemTemperatureStatusWindow.sln index e2315dd..7a3d7ba 100644 --- a/SystemTemperatureStatusWindow.sln +++ b/SystemTemperatureStatusWindow.sln @@ -11,12 +11,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Common", "Service\Common\Co EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenHardwareMonitorLib", "Service\openhardwaremonitor\OpenHardwareMonitorLib.csproj", "{B0397530-545A-471D-BB74-027AE456DF1A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Common.Native", "Window\FloatingStatusWindow\Library\Common.Wpf\Common.Native\Common.Native.csproj", "{ED1C07A1-54F5-4796-8B06-2A0BB1960D84}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Common.Wpf", "Window\FloatingStatusWindow\Library\Common.Wpf\Common.Wpf.csproj", "{0074C983-550E-4094-9E8C-F566FB669297}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FloatingStatusWindow", "Window\FloatingStatusWindow\Library\FloatingStatusWindow.csproj", "{F023A16C-2F13-4A87-A8B7-22C43C4A58A4}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution", "Solution", "{DB32E0C0-3FEF-41DD-A898-016972B75CAF}" ProjectSection(SolutionItems) = preProject .gitignore = .gitignore @@ -74,42 +68,6 @@ Global {B0397530-545A-471D-BB74-027AE456DF1A}.Release|x64.Build.0 = Release|Any CPU {B0397530-545A-471D-BB74-027AE456DF1A}.Release|x86.ActiveCfg = Release|Any CPU {B0397530-545A-471D-BB74-027AE456DF1A}.Release|x86.Build.0 = Release|Any CPU - {ED1C07A1-54F5-4796-8B06-2A0BB1960D84}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {ED1C07A1-54F5-4796-8B06-2A0BB1960D84}.Debug|Any CPU.Build.0 = Debug|Any CPU - {ED1C07A1-54F5-4796-8B06-2A0BB1960D84}.Debug|x64.ActiveCfg = Debug|x64 - {ED1C07A1-54F5-4796-8B06-2A0BB1960D84}.Debug|x64.Build.0 = Debug|x64 - {ED1C07A1-54F5-4796-8B06-2A0BB1960D84}.Debug|x86.ActiveCfg = Debug|x86 - {ED1C07A1-54F5-4796-8B06-2A0BB1960D84}.Debug|x86.Build.0 = Debug|x86 - {ED1C07A1-54F5-4796-8B06-2A0BB1960D84}.Release|Any CPU.ActiveCfg = Release|Any CPU - {ED1C07A1-54F5-4796-8B06-2A0BB1960D84}.Release|Any CPU.Build.0 = Release|Any CPU - {ED1C07A1-54F5-4796-8B06-2A0BB1960D84}.Release|x64.ActiveCfg = Release|x64 - {ED1C07A1-54F5-4796-8B06-2A0BB1960D84}.Release|x64.Build.0 = Release|x64 - {ED1C07A1-54F5-4796-8B06-2A0BB1960D84}.Release|x86.ActiveCfg = Release|x86 - {ED1C07A1-54F5-4796-8B06-2A0BB1960D84}.Release|x86.Build.0 = Release|x86 - {0074C983-550E-4094-9E8C-F566FB669297}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0074C983-550E-4094-9E8C-F566FB669297}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0074C983-550E-4094-9E8C-F566FB669297}.Debug|x64.ActiveCfg = Debug|x64 - {0074C983-550E-4094-9E8C-F566FB669297}.Debug|x64.Build.0 = Debug|x64 - {0074C983-550E-4094-9E8C-F566FB669297}.Debug|x86.ActiveCfg = Debug|x86 - {0074C983-550E-4094-9E8C-F566FB669297}.Debug|x86.Build.0 = Debug|x86 - {0074C983-550E-4094-9E8C-F566FB669297}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0074C983-550E-4094-9E8C-F566FB669297}.Release|Any CPU.Build.0 = Release|Any CPU - {0074C983-550E-4094-9E8C-F566FB669297}.Release|x64.ActiveCfg = Release|x64 - {0074C983-550E-4094-9E8C-F566FB669297}.Release|x64.Build.0 = Release|x64 - {0074C983-550E-4094-9E8C-F566FB669297}.Release|x86.ActiveCfg = Release|x86 - {0074C983-550E-4094-9E8C-F566FB669297}.Release|x86.Build.0 = Release|x86 - {F023A16C-2F13-4A87-A8B7-22C43C4A58A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F023A16C-2F13-4A87-A8B7-22C43C4A58A4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F023A16C-2F13-4A87-A8B7-22C43C4A58A4}.Debug|x64.ActiveCfg = Debug|Any CPU - {F023A16C-2F13-4A87-A8B7-22C43C4A58A4}.Debug|x64.Build.0 = Debug|Any CPU - {F023A16C-2F13-4A87-A8B7-22C43C4A58A4}.Debug|x86.ActiveCfg = Debug|Any CPU - {F023A16C-2F13-4A87-A8B7-22C43C4A58A4}.Debug|x86.Build.0 = Debug|Any CPU - {F023A16C-2F13-4A87-A8B7-22C43C4A58A4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F023A16C-2F13-4A87-A8B7-22C43C4A58A4}.Release|Any CPU.Build.0 = Release|Any CPU - {F023A16C-2F13-4A87-A8B7-22C43C4A58A4}.Release|x64.ActiveCfg = Release|Any CPU - {F023A16C-2F13-4A87-A8B7-22C43C4A58A4}.Release|x64.Build.0 = Release|Any CPU - {F023A16C-2F13-4A87-A8B7-22C43C4A58A4}.Release|x86.ActiveCfg = Release|Any CPU - {F023A16C-2F13-4A87-A8B7-22C43C4A58A4}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Window/App.xaml.cs b/Window/App.xaml.cs index 8f4c505..e55ba73 100644 --- a/Window/App.xaml.cs +++ b/Window/App.xaml.cs @@ -1,4 +1,6 @@ using FloatingStatusWindowLibrary; +using Squirrel; +using System; using System.Diagnostics; using System.Windows; using SystemTemperatureStatusWindow.Properties; @@ -8,6 +10,18 @@ namespace SystemTemperatureStatusWindow public partial class App { private WindowSource _windowSource; + + public static string UpdateUrl = "https://github.com/ckaczor/SystemTemperatureStatusWindow"; + + [STAThread] + public static void Main(string[] args) + { + SquirrelAwareApp.HandleEvents(onAppUpdate: version => Common.Settings.Extensions.RestoreSettings()); + + var application = new App(); + application.InitializeComponent(); + application.Run(); + } protected override void OnStartup(StartupEventArgs e) { @@ -15,11 +29,11 @@ namespace SystemTemperatureStatusWindow StartManager.ManageAutoStart = true; StartManager.AutoStartEnabled = !Debugger.IsAttached && Settings.Default.AutoStart; - StartManager.AutoStartChanged += (value => + StartManager.AutoStartChanged += value => { Settings.Default.AutoStart = value; Settings.Default.Save(); - }); + }; _windowSource = new WindowSource(); } diff --git a/Window/FloatingStatusWindow b/Window/FloatingStatusWindow deleted file mode 160000 index 12ac49c..0000000 --- a/Window/FloatingStatusWindow +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 12ac49c192843bb47f35dcf986e700e049b4f97d diff --git a/Window/Options/AboutOptionsPanel.xaml b/Window/Options/AboutOptionsPanel.xaml new file mode 100644 index 0000000..e595aa6 --- /dev/null +++ b/Window/Options/AboutOptionsPanel.xaml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + +