Skip to content

Portable Tool for an Ideal Windows Setup

-edit

Greedeks67412dd23962
diff --git a/.Source/GTweak/Utilities/Settings.cs b/.Source/GTweak/Utilities/Settings.cs
index 7d971441..1bfaaf9b 100644
--- a/.Source/GTweak/Utilities/Settings.cs
+++ b/.Source/GTweak/Utilities/Settings.cs
@@ -3,7 +3,6 @@ using GTweak.Windows;
using Microsoft.Win32;
using System;
using System.Diagnostics;
-using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
@@ -117,9 +116,9 @@ namespace GTweak.Utilities
RestoreDirectory = true
};
- bool? isResult = saveFileDialog.ShowDialog();
+ bool? isResultNormal = saveFileDialog.ShowDialog();
- if (isResult != true) return;
+ if (isResultNormal != true) return;
try
{
@@ -147,9 +146,9 @@ namespace GTweak.Utilities
Filter = "(*.INI)|*.INI"
};
- bool? isResult = openFileDialog.ShowDialog();
+ bool? isResultNormal = openFileDialog.ShowDialog();
- if (isResult != true) return;
+ if (isResultNormal != true) return;
PathConfig = openFileDialog.FileName;
INIManager iniManager = new INIManager(PathConfig);
diff --git a/.Source/GTweak/Utilities/Tweaks/UninstallingApps.cs b/.Source/GTweak/Utilities/Tweaks/UninstallingApps.cs
index cec24d5b..41800470 100644
--- a/.Source/GTweak/Utilities/Tweaks/UninstallingApps.cs
+++ b/.Source/GTweak/Utilities/Tweaks/UninstallingApps.cs
@@ -155,7 +155,7 @@ namespace GTweak.Utilities.Tweaks
}
if (!string.IsNullOrEmpty(AlternativeName[appName]))
- process.StartInfo.Arguments = "Get-AppxProvisionedPackage -online | where-object {$_.PackageName -like '*" + !string.IsNullOrEmpty(AlternativeName[appName]) + "*'} | Remove-AppxProvisionedPackage -alluser -online –Verbose";
+ process.StartInfo.Arguments = "Get-AppxProvisionedPackage -online | where-object {$_.PackageName -like '*" + AlternativeName[appName] + "*'} | Remove-AppxProvisionedPackage -alluser -online –Verbose";
process.WaitForExit();
process.Dispose();