Skip to content

Portable Tool for an Ideal Windows Setup

-fixing the problem of the number of processor cores, when removing more than possible

Greedeks2889d32599aa
diff --git a/.Source/GTweak/View/ApplicationsView.xaml.cs b/.Source/GTweak/View/ApplicationsView.xaml.cs
index a48cc506..809109bf 100644
--- a/.Source/GTweak/View/ApplicationsView.xaml.cs
+++ b/.Source/GTweak/View/ApplicationsView.xaml.cs
@@ -53,12 +53,12 @@ namespace GTweak.View
if (_appName != "YandexMusic")
{
UninstallingApps.RemovalProcess[_appName] = true;
- Parallel.Invoke(() => UninstallingApps.DeletedApp(_appName));
+ UninstallingApps.DeletedApp(_appName);
}
else
{
UninstallingApps.RemovalProcess["Yandex.Music"] = true;
- Parallel.Invoke(() => UninstallingApps.DeletedApp("Yandex.Music"));
+ UninstallingApps.DeletedApp("Yandex.Music");
}
};
backgroundWorker.RunWorkerCompleted += async (s, _) =>
@@ -80,7 +80,7 @@ namespace GTweak.View
new ViewNotification().Show("", (string)FindResource("title1_notification"), (string)FindResource("onedrive_notification"));
BackgroundWorker backgroundWorker = new BackgroundWorker();
- backgroundWorker.DoWork += (s, _) => Parallel.Invoke(UninstallingApps.ResetOneDrive);
+ backgroundWorker.DoWork += (s, _) => UninstallingApps.ResetOneDrive();
backgroundWorker.RunWorkerCompleted += async (s, _) =>
{
await Task.Delay(15000);