Skip to content

Portable Tool for an Ideal Windows Setup

-correction name for updates

Greedeks80d78d0b025a
diff --git a/.Source/GTweak/GTweak.csproj b/.Source/GTweak/GTweak.csproj
index 90ebd595..e79314d1 100644
--- a/.Source/GTweak/GTweak.csproj
+++ b/.Source/GTweak/GTweak.csproj
@@ -266,7 +266,7 @@
<Compile Include="Utilities\Helpers\TakingOwnership.cs" />
<Compile Include="Utilities\Tweaks\ClearingMemory.cs" />
<Compile Include="Utilities\Helpers\INIManager.cs" />
- <Compile Include="Utilities\UpdatingUtility.cs" />
+ <Compile Include="Utilities\SearchUpdates.cs" />
<Compile Include="Utilities\ViewNotification.cs" />
<Compile Include="Utilities\Helpers\TrustedInstaller.cs" />
<Compile Include="Utilities\Tweaks\ConfidentialityTweaks.cs" />
diff --git a/.Source/GTweak/Utilities/UpdatingUtility.cs b/.Source/GTweak/Utilities/SearchUpdates.cs
similarity index 94%
rename from .Source/GTweak/Utilities/UpdatingUtility.cs
rename to .Source/GTweak/Utilities/SearchUpdates.cs
index 044f7464..47b85ed7 100644
--- a/.Source/GTweak/Utilities/UpdatingUtility.cs
+++ b/.Source/GTweak/Utilities/SearchUpdates.cs
@@ -4,7 +4,7 @@ using System.Net;
namespace GTweak.Utilities
{
- internal class UpdatingUtility
+ internal sealed class SearchUpdates
{
internal class GitVersionUtility
{
@@ -15,7 +15,7 @@ namespace GTweak.Utilities
internal static bool IsNeedUpdate { get; set; } = false;
internal static string DownloadVersion { get; set; } = string.Empty;
- internal void CheckingUpdate()
+ internal void StartСhecking()
{
if (!Settings.IsСheckingUpdate)
return;
diff --git a/.Source/GTweak/Windows/LoadingWindow.xaml.cs b/.Source/GTweak/Windows/LoadingWindow.xaml.cs
index 0e628c25..9c787c2d 100644
--- a/.Source/GTweak/Windows/LoadingWindow.xaml.cs
+++ b/.Source/GTweak/Windows/LoadingWindow.xaml.cs
@@ -52,7 +52,7 @@ namespace GTweak.Windows
new Settings().CheckingTempFiles,
new WindowsLicense().LicenseStatus,
new SystemData.СomputerСonfiguration().GetConfiguration,
- new UpdatingUtility().CheckingUpdate,
+ new SearchUpdates().StartСhecking,
new UninstallingPakages().ViewInstalledPackages,
new UninstallingPakages().CheckingForLocalAccount,
new SystemTweaks().ViewNetshState,
diff --git a/.Source/GTweak/Windows/MainWindow.xaml.cs b/.Source/GTweak/Windows/MainWindow.xaml.cs
index 34e5ba0c..8d2722e9 100644
--- a/.Source/GTweak/Windows/MainWindow.xaml.cs
+++ b/.Source/GTweak/Windows/MainWindow.xaml.cs
@@ -5,6 +5,7 @@ using GTweak.Windows;
using System;
using System.ComponentModel;
using System.Diagnostics;
+using System.Security.Policy;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
@@ -122,7 +123,7 @@ namespace GTweak
};
doubleAnim.Completed += async delegate
{
- if (UpdatingUtility.IsNeedUpdate && Settings.IsСheckingUpdate)
+ if (SearchUpdates.IsNeedUpdate && Settings.IsСheckingUpdate)
{
await Task.Delay(500);
new UpdateWindow().ShowDialog();
@@ -202,18 +203,12 @@ namespace GTweak
private void BtnContats_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
Image btnConcat = (Image)sender;
- switch (btnConcat.Uid)
+ Process.Start(btnConcat.Uid switch
{
- case "git":
- Process.Start("https://github.com/Greedeks");
- break;
- case "tg":
- Process.Start("https://t.me/Greedeks");
- break;
- case "steam":
- Process.Start("https://steamcommunity.com/id/greedeks/");
- break;
- }
+ "git" => "https://github.com/Greedeks",
+ "tg" => "https://t.me/Greedeks",
+ _ => "https://steamcommunity.com/id/greedeks/",
+ });
}
#endregion
}
diff --git a/.Source/GTweak/Windows/UpdateWindow.xaml.cs b/.Source/GTweak/Windows/UpdateWindow.xaml.cs
index 06671fb0..4998a6fb 100644
--- a/.Source/GTweak/Windows/UpdateWindow.xaml.cs
+++ b/.Source/GTweak/Windows/UpdateWindow.xaml.cs
@@ -15,7 +15,7 @@ namespace GTweak.Windows
{
InitializeComponent();
CurrentVerison.Text = Settings.currentRelease;
- DownloadVersion.Text = NewVerison.Text = UpdatingUtility.DownloadVersion;
+ DownloadVersion.Text = NewVerison.Text = SearchUpdates.DownloadVersion;
}
private void TitleBar_MouseDown(object sender, MouseButtonEventArgs e)