Skip to content

Portable Tool for an Ideal Windows Setup

-modify

Greedeksa93ce86425c8
diff --git a/.Source/GTweak/Utilities/Helpers/BackgroundQueue.cs b/.Source/GTweak/Utilities/Helpers/BackgroundQueue.cs
index 68990c27..09e9a119 100644
--- a/.Source/GTweak/Utilities/Helpers/BackgroundQueue.cs
+++ b/.Source/GTweak/Utilities/Helpers/BackgroundQueue.cs
@@ -4,7 +4,7 @@ using System.Threading.Tasks;
namespace GTweak.Utilities.Helpers
{
- internal class BackgroundQueue
+ internal sealed class BackgroundQueue
{
private Task previousTask = Task.FromResult(true);
private readonly object key = new object();
diff --git a/.Source/GTweak/Utilities/Helpers/TakingOwnership.cs b/.Source/GTweak/Utilities/Helpers/TakingOwnership.cs
index b82a65b4..7be20da7 100644
--- a/.Source/GTweak/Utilities/Helpers/TakingOwnership.cs
+++ b/.Source/GTweak/Utilities/Helpers/TakingOwnership.cs
@@ -3,7 +3,7 @@ using System.Runtime.InteropServices;
namespace GTweak.Utilities.Helpers
{
- internal class TakingOwnership
+ internal sealed class TakingOwnership
{
[StructLayout(LayoutKind.Sequential)]
private struct SID_IDENTIFIER_AUTHORITY
diff --git a/.Source/GTweak/Utilities/Settings.cs b/.Source/GTweak/Utilities/Settings.cs
index 6ea581a2..26cda952 100644
--- a/.Source/GTweak/Utilities/Settings.cs
+++ b/.Source/GTweak/Utilities/Settings.cs
@@ -11,7 +11,7 @@ using System.Windows;
namespace GTweak.Utilities
{
- internal readonly struct Settings
+ internal sealed class Settings
{
internal static string PathConfig = string.Empty;
internal static string PathSound => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)) + @"\GTweak\Sound.mp3";
@@ -40,7 +40,7 @@ namespace GTweak.Utilities
internal static string Theme { get => _theme; set => _theme = value; }
internal static bool IsHiddenIpAddress { get => _isHiddenIpAddress; set => _isHiddenIpAddress = value; }
- internal readonly void CheckingTempFiles()
+ internal void CheckingTempFiles()
{
if (!File.Exists(PathIcon))
new UnarchiveManager(PathIcon, Properties.Resources.GTweak);
@@ -49,7 +49,7 @@ namespace GTweak.Utilities
new UnarchiveManager(PathSound, Properties.Resources.Sound);
}
- internal readonly void СheckingParameters()
+ internal void СheckingParameters()
{
RegistryKey registryKey = Registry.CurrentUser.CreateSubKey(@"Software\GTweak");
if (registryKey == null || registryKey.GetValue("Notification", null) == null || registryKey.GetValue("Sound", null) == null || registryKey.GetValue("Volume", null) == null || registryKey.GetValue("TopMost", null) == null ||
diff --git a/.Source/GTweak/Utilities/Tweaks/Firewall.cs b/.Source/GTweak/Utilities/Tweaks/Firewall.cs
index 367167c5..b52e8b45 100644
--- a/.Source/GTweak/Utilities/Tweaks/Firewall.cs
+++ b/.Source/GTweak/Utilities/Tweaks/Firewall.cs
@@ -7,7 +7,7 @@ using System.Windows;
namespace GTweak.Utilities.Tweaks
{
- internal abstract class Firewall
+ internal class Firewall
{
private static readonly SortedList<string, string> NameRules = new SortedList<string, string>
{
@@ -47,7 +47,7 @@ namespace GTweak.Utilities.Tweaks
});
}
catch { new ViewNotification().Show("", (string)Application.Current.Resources["title0_notification"], (string)Application.Current.Resources["firewalloff_notification"]); }
-
+
try
{
Parallel.Invoke(() =>
diff --git a/.Source/GTweak/View/InterfaceView.xaml.cs b/.Source/GTweak/View/InterfaceView.xaml.cs
index c800ea40..296dcfab 100644
--- a/.Source/GTweak/View/InterfaceView.xaml.cs
+++ b/.Source/GTweak/View/InterfaceView.xaml.cs
@@ -3,7 +3,6 @@ using GTweak.Utilities;
using GTweak.Utilities.Helpers;
using GTweak.Utilities.Tweaks;
using System;
-using System.Net.NetworkInformation;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;