@@ -159,9 +159,8 @@ private static async Task UpdateTabInfoAsync(TabBarItem tabItem, object navigati
|
159 | 159 | imageSource = new BitmapImage(new Uri(Constants.FluentIconsPaths.HomeIcon));
|
160 | 160 | else if (path == "ReleaseNotes")
|
161 | 161 | imageSource = new BitmapImage(new Uri(AppLifecycleHelper.AppIconPath));
|
162 |
| -// TODO add settings page |
163 |
| -//else if (path == "Settings") |
164 |
| -// imageSource = new BitmapImage(new Uri(AppLifecycleHelper.AppIconPath)); |
| 162 | +else if (path == "Settings") |
| 163 | +imageSource = new BitmapImage(new Uri(AppLifecycleHelper.AppIconPath)); |
165 | 164 | else if (WSLDistroManager.TryGetDistro(path, out WslDistroItem? wslDistro) && path.Equals(wslDistro.Path))
|
166 | 165 | imageSource = new BitmapImage(wslDistro.Icon);
|
167 | 166 | else
|
@@ -202,12 +201,11 @@ private static async Task UpdateTabInfoAsync(TabBarItem tabItem, object navigati
|
202 | 201 | tabLocationHeader = Strings.ReleaseNotes.GetLocalizedResource();
|
203 | 202 | iconSource.ImageSource = new BitmapImage(new Uri(AppLifecycleHelper.AppIconPath));
|
204 | 203 | }
|
205 |
| -// TODO add settings page |
206 |
| -//else if (currentPath == "Settings") |
207 |
| -//{ |
208 |
| -// tabLocationHeader = Strings.Settings.GetLocalizedResource(); |
209 |
| -// iconSource.ImageSource = new BitmapImage(new Uri(AppLifecycleHelper.AppIconPath)); |
210 |
| -//} |
| 204 | +else if (currentPath == "Settings") |
| 205 | +{ |
| 206 | +tabLocationHeader = Strings.Settings.GetLocalizedResource(); |
| 207 | +iconSource.ImageSource = new BitmapImage(new Uri(AppLifecycleHelper.AppIconPath)); |
| 208 | +} |
211 | 209 | else if (currentPath.Equals(Constants.UserEnvironmentPaths.DesktopPath, StringComparison.OrdinalIgnoreCase))
|
212 | 210 | tabLocationHeader = Strings.Desktop.GetLocalizedResource();
|
213 | 211 | else if (currentPath.Equals(Constants.UserEnvironmentPaths.DownloadsPath, StringComparison.OrdinalIgnoreCase))
|
|
0 commit comments