Portable Tool for an Ideal Windows Setup
C# activatorbloatware-removalcsharpdebloatdebloaterdisable-servicesmonitoring-systemportableprivacy-toolsregistry-tweakssystem-tuningsystem-utilitytelemetrytweakerwindows-10windows-11windows-debloatwindows-defenderwindows-optimizationwindows-tweaks
-fixed check limeted connection
Greedeksa29988a24206
diff --git a/.Source/GTweak/Core/ViewModel/PagesViewModel.cs b/.Source/GTweak/Core/ViewModel/PagesViewModel.csindex 3e8111ad..e7359e02 100644--- a/.Source/GTweak/Core/ViewModel/PagesViewModel.cs+++ b/.Source/GTweak/Core/ViewModel/PagesViewModel.cs@@ -155,7 +155,10 @@ namespace GTweak.Core.ViewModelelse{SetBlurValue = 0;- DisplayImageHidden = (DrawingImage)Application.Current.Resources["DI_Hide"];+ if (!SystemData.СomputerСonfiguration.isNoInternetConnection & !SystemData.СomputerСonfiguration.isInternetLimited)+ DisplayImageHidden = (DrawingImage)Application.Current.Resources["DI_Hide"];+ else+ DisplayImageHidden = default;}}}diff --git a/.Source/GTweak/Utilities/Tweaks/SystemData.cs b/.Source/GTweak/Utilities/Tweaks/SystemData.csindex c1c1b951..d6037e45 100644--- a/.Source/GTweak/Utilities/Tweaks/SystemData.cs+++ b/.Source/GTweak/Utilities/Tweaks/SystemData.cs@@ -270,8 +270,7 @@ namespace GTweak.Utilitiesif (isInternetLimited)isInternetLimited = false;-- if (!string.IsNullOrEmpty(clientInternetProtocol.Ip) || !string.IsNullOrEmpty(clientInternetProtocol.Country))+ if (IPAddress.TryParse(clientInternetProtocol.Ip, out IPAddress ip) && !string.IsNullOrEmpty(clientInternetProtocol.Ip) && !string.IsNullOrEmpty(clientInternetProtocol.Country)){СonfigurationData["IpAddress"] = clientInternetProtocol.Ip + " (" + clientInternetProtocol.Country + ")";isNoInternetConnection = false && isNoInternetConnection;@@ -279,7 +278,7 @@ namespace GTweak.Utilitieselse{App.ViewLang();- СonfigurationData["IpAddress"] = (string)Application.Current.Resources["connection_systemInformation"];+ СonfigurationData["IpAddress"] = (string)Application.Current.Resources["limited_systemInformation"];isNoInternetConnection = true;}}diff --git a/.Source/GTweak/View/InformationSystemView.xaml.cs b/.Source/GTweak/View/InformationSystemView.xaml.csindex 100c06e5..8a35be47 100644--- a/.Source/GTweak/View/InformationSystemView.xaml.cs+++ b/.Source/GTweak/View/InformationSystemView.xaml.cs@@ -56,7 +56,6 @@ namespace GTweak.Viewnew Thread(() => new SystemData.MonitoringSystem().CountProcess.ToString()).Start();new Thread(() => new SystemData.MonitoringSystem().CountProcess.ToString()).IsBackground = true;Application.Current.Dispatcher.Invoke(ProgressBarAnim);- ImageHidden.Visibility = !SystemData.СomputerСonfiguration.isNoInternetConnection & !SystemData.СomputerСonfiguration.isInternetLimited ? Visibility.Visible : Visibility.Collapsed;};}else if (time.TotalSeconds % 5 == 0)@@ -186,7 +185,6 @@ namespace GTweak.View{Application.Current.Dispatcher.Invoke(() => { CPULoad.Value = SystemData.MonitoringSystem.CpuUsage; });Application.Current.Dispatcher.Invoke(() => { RAMLoad.Value = new SystemData.MonitoringSystem().RamUsage; });- ImageHidden.Visibility = !SystemData.СomputerСonfiguration.isNoInternetConnection & !SystemData.СomputerСonfiguration.isInternetLimited ? Visibility.Visible : Visibility.Collapsed;}}}