Skip to content

Commit aed0911

Browse files
committed
remove commented out code
1 parent 05bd3f6 commit aed0911

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

easyWSL/RegisterNewDistro_Page.xaml.cs

+6-11
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ public sealed partial class RegisterNewDistro_Page : Page
1818

1919
private string distroTarballPath;
2020
private string distroSource;
21-
private easyWslLib.Helpers helpers = new();
22-
//private DockerDownloader dockerDownloader = new();
21+
private Helpers helpers = new();
2322
private Windows.Storage.StorageFolder storageDirectory = Windows.Storage.ApplicationData.Current.LocalFolder;
2423

2524
private Dictionary<string, string> distrosSources = new()
@@ -78,7 +77,7 @@ internal interface IWindowNative
7877
}
7978
private async void registerDistroProceedButton_Click(object sender, RoutedEventArgs e)
8079
{
81-
easyWslLib.DockerDownloader dockerDownloader2 = new(App.tmpDirectory.Path,
80+
DockerDownloader dockerDownloader = new(App.tmpDirectory.Path,
8281
new PlatformHelpers(Path.Combine(App.executableLocation, "dep", "bsdtar.exe"), HttpProgressCallback));
8382

8483

@@ -131,8 +130,7 @@ private async void registerDistroProceedButton_Click(object sender, RoutedEventA
131130

132131
try
133132
{
134-
//await dockerDownloader.DownloadImage(image, HttpProgressCallback);
135-
await dockerDownloader2.DownloadImage(image);
133+
await dockerDownloader.DownloadImage(image);
136134
}
137135
catch (DockerDownloader.DockerException)
138136
{
@@ -145,8 +143,7 @@ private async void registerDistroProceedButton_Click(object sender, RoutedEventA
145143
registerDistroProgressBar.Visibility = Visibility.Collapsed;
146144
registeringStatusTextBlock.Visibility = Visibility.Collapsed;
147145

148-
//await dockerDownloader.CombineLayers();
149-
await dockerDownloader2.CombineLayers();
146+
await dockerDownloader.CombineLayers();
150147
await RegisterDistro(distroName, Path.Combine(App.tmpDirectory.Path, "install.tar.bz"));
151148
break;
152149
case "Docker Hub":
@@ -158,8 +155,7 @@ private async void registerDistroProceedButton_Click(object sender, RoutedEventA
158155

159156
try
160157
{
161-
//await dockerDownloader.DownloadImage(image, HttpProgressCallback);
162-
await dockerDownloader2.DownloadImage(image);
158+
await dockerDownloader.DownloadImage(image);
163159
}
164160
catch (DockerDownloader.DockerException)
165161
{
@@ -172,8 +168,7 @@ private async void registerDistroProceedButton_Click(object sender, RoutedEventA
172168
registerDistroProgressBar.Visibility = Visibility.Collapsed;
173169
registeringStatusTextBlock.Visibility = Visibility.Collapsed;
174170

175-
//await dockerDownloader.CombineLayers();
176-
await dockerDownloader2.CombineLayers();
171+
await dockerDownloader.CombineLayers();
177172
await RegisterDistro(distroName, Path.Combine(App.tmpDirectory.Path, "install.tar.bz"));
178173
break;
179174
case "Local hard drive":

0 commit comments

Comments
 (0)