Skip to content

Portable Tool for an Ideal Windows Setup

-re objects

Greedeks1bb75db14e5c
diff --git a/.Source/GTweak/Utilities/Tweaks/InterfaceTweaks.cs b/.Source/GTweak/Utilities/Tweaks/InterfaceTweaks.cs
index 57df9e5e..0805f7ea 100644
--- a/.Source/GTweak/Utilities/Tweaks/InterfaceTweaks.cs
+++ b/.Source/GTweak/Utilities/Tweaks/InterfaceTweaks.cs
@@ -383,6 +383,7 @@ namespace GTweak.Utilities.Tweaks
if (explorer.Length == 0)
{
launchExplorer.StartInfo.FileName = $@"{Environment.GetEnvironmentVariable("WINDIR")}\{"explorer.exe"}";
+ launchExplorer.StartInfo.UseShellExecute = true;
launchExplorer.Start();
}
diff --git a/.Source/GTweak/Utilities/Tweaks/RecoveryPoint.cs b/.Source/GTweak/Utilities/Tweaks/RecoveryPoint.cs
index a5306d2b..55ba71ae 100644
--- a/.Source/GTweak/Utilities/Tweaks/RecoveryPoint.cs
+++ b/.Source/GTweak/Utilities/Tweaks/RecoveryPoint.cs
@@ -17,7 +17,7 @@ namespace GTweak.Utilities.Tweaks
private static readonly ManagementClass RestorePoint = new ManagementClass(new ManagementScope(@"\\localhost\root\default"), new ManagementPath("SystemRestore"), new ObjectGetOptions());
private static ManagementBaseObject InParams;
private static bool isWorkingCreatePoint = false;
- private static string resultRead = default;
+ private static string resultRead = string.Empty;
internal static bool IsAlreadyPoint()
{