diff --git a/src/Bundle/Sucrose.Bundle/Main.xaml b/src/Bundle/Sucrose.Bundle/Main.xaml index bbcaffbae..7967f778d 100644 --- a/src/Bundle/Sucrose.Bundle/Main.xaml +++ b/src/Bundle/Sucrose.Bundle/Main.xaml @@ -13,7 +13,7 @@ Background="#FF29373B" Icon="\Sucrose.Bundle;component\Assets\ICO.ico"> - + diff --git a/src/Live/Sucrose.Live.WebView/Sucrose.Live.WebView.csproj b/src/Live/Sucrose.Live.WebView/Sucrose.Live.WebView.csproj index 25ebf9075..656f903a7 100644 --- a/src/Live/Sucrose.Live.WebView/Sucrose.Live.WebView.csproj +++ b/src/Live/Sucrose.Live.WebView/Sucrose.Live.WebView.csproj @@ -70,7 +70,7 @@ - + diff --git a/src/Shared/Sucrose.Shared.Signal/Services/BackgroundogSignalService.cs b/src/Shared/Sucrose.Shared.Signal/Services/BackgroundogSignalService.cs index f42a3424b..d3d56ca55 100644 --- a/src/Shared/Sucrose.Shared.Signal/Services/BackgroundogSignalService.cs +++ b/src/Shared/Sucrose.Shared.Signal/Services/BackgroundogSignalService.cs @@ -12,51 +12,57 @@ public static class BackgroundogSignalService { public static async void Handler(object sender, FileSystemEventArgs e) { - SSIB Data = await SSMI.BackgroundogManager.FileRead(e.FullPath, new()); - - if (Data.Cpu != null) + if (e != null) { - SSEMI.CpuData = JsonConvert.SerializeObject(Data.Cpu, Formatting.Indented); - } + SSIB Data = await SSMI.BackgroundogManager.FileRead(e.FullPath, new()); - if (Data.Bios != null) - { - SSEMI.BiosData = JsonConvert.SerializeObject(Data.Bios, Formatting.Indented); - } + if (Data != null) + { + if (Data.Cpu != null) + { + SSEMI.CpuData = JsonConvert.SerializeObject(Data.Cpu, Formatting.Indented); + } - if (Data.Date != null) - { - SSEMI.DateData = JsonConvert.SerializeObject(Data.Date, Formatting.Indented); - } + if (Data.Bios != null) + { + SSEMI.BiosData = JsonConvert.SerializeObject(Data.Bios, Formatting.Indented); + } - if (Data.Audio != null) - { - SSEMI.AudioData = JsonConvert.SerializeObject(Data.Audio, Formatting.Indented); - } + if (Data.Date != null) + { + SSEMI.DateData = JsonConvert.SerializeObject(Data.Date, Formatting.Indented); + } - if (Data.Memory != null) - { - SSEMI.MemoryData = JsonConvert.SerializeObject(Data.Memory, Formatting.Indented); - } + if (Data.Audio != null) + { + SSEMI.AudioData = JsonConvert.SerializeObject(Data.Audio, Formatting.Indented); + } - if (Data.Battery != null) - { - SSEMI.BatteryData = JsonConvert.SerializeObject(Data.Battery, Formatting.Indented); - } + if (Data.Memory != null) + { + SSEMI.MemoryData = JsonConvert.SerializeObject(Data.Memory, Formatting.Indented); + } - if (Data.Graphic != null) - { - SSEMI.GraphicData = JsonConvert.SerializeObject(Data.Graphic, Formatting.Indented); - } + if (Data.Battery != null) + { + SSEMI.BatteryData = JsonConvert.SerializeObject(Data.Battery, Formatting.Indented); + } - if (Data.Network != null) - { - SSEMI.NetworkData = JsonConvert.SerializeObject(Data.Network, Formatting.Indented); - } + if (Data.Graphic != null) + { + SSEMI.GraphicData = JsonConvert.SerializeObject(Data.Graphic, Formatting.Indented); + } - if (Data.Motherboard != null) - { - SSEMI.MotherboardData = JsonConvert.SerializeObject(Data.Motherboard, Formatting.Indented); + if (Data.Network != null) + { + SSEMI.NetworkData = JsonConvert.SerializeObject(Data.Network, Formatting.Indented); + } + + if (Data.Motherboard != null) + { + SSEMI.MotherboardData = JsonConvert.SerializeObject(Data.Motherboard, Formatting.Indented); + } + } } } }