@@ -113,34 +113,34 @@ private void Page_Loaded(object sender, RoutedEventArgs e)
113
113
LocationsList . SelectedItem = App . sideBarItems [ 0 ] ;
114
114
break ;
115
115
case "Desktop" :
116
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DesktopPath , new SuppressNavigationTransitionInfo ( ) ) ;
117
- LocationsList . SelectedItem = App . sideBarItems . First ( x => x . Path . Equals ( App . DesktopPath , StringComparison . OrdinalIgnoreCase ) ) ;
116
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . AppSettings . DesktopPath , new SuppressNavigationTransitionInfo ( ) ) ;
117
+ LocationsList . SelectedItem = App . sideBarItems . First ( x => x . Path . Equals ( App . AppSettings . DesktopPath , StringComparison . OrdinalIgnoreCase ) ) ;
118
118
break ;
119
119
case "Downloads" :
120
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DownloadsPath , new SuppressNavigationTransitionInfo ( ) ) ;
121
- LocationsList . SelectedItem = App . sideBarItems . First ( x => x . Path . Equals ( App . DownloadsPath , StringComparison . OrdinalIgnoreCase ) ) ;
120
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . AppSettings . DownloadsPath , new SuppressNavigationTransitionInfo ( ) ) ;
121
+ LocationsList . SelectedItem = App . sideBarItems . First ( x => x . Path . Equals ( App . AppSettings . DownloadsPath , StringComparison . OrdinalIgnoreCase ) ) ;
122
122
break ;
123
123
case "Documents" :
124
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DocumentsPath , new SuppressNavigationTransitionInfo ( ) ) ;
125
- LocationsList . SelectedItem = App . sideBarItems . First ( x => x . Path . Equals ( App . DocumentsPath , StringComparison . OrdinalIgnoreCase ) ) ;
124
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . AppSettings . DocumentsPath , new SuppressNavigationTransitionInfo ( ) ) ;
125
+ LocationsList . SelectedItem = App . sideBarItems . First ( x => x . Path . Equals ( App . AppSettings . DocumentsPath , StringComparison . OrdinalIgnoreCase ) ) ;
126
126
break ;
127
127
case "Pictures" :
128
- ItemDisplayFrame . Navigate ( typeof ( PhotoAlbum ) , App . PicturesPath , new SuppressNavigationTransitionInfo ( ) ) ;
129
- LocationsList . SelectedItem = App . sideBarItems . First ( x => x . Path . Equals ( App . PicturesPath , StringComparison . OrdinalIgnoreCase ) ) ;
128
+ ItemDisplayFrame . Navigate ( typeof ( PhotoAlbum ) , App . AppSettings . PicturesPath , new SuppressNavigationTransitionInfo ( ) ) ;
129
+ LocationsList . SelectedItem = App . sideBarItems . First ( x => x . Path . Equals ( App . AppSettings . PicturesPath , StringComparison . OrdinalIgnoreCase ) ) ;
130
130
break ;
131
131
case "Music" :
132
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . MusicPath , new SuppressNavigationTransitionInfo ( ) ) ;
133
- LocationsList . SelectedItem = App . sideBarItems . First ( x => x . Path . Equals ( App . MusicPath , StringComparison . OrdinalIgnoreCase ) ) ;
132
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . AppSettings . MusicPath , new SuppressNavigationTransitionInfo ( ) ) ;
133
+ LocationsList . SelectedItem = App . sideBarItems . First ( x => x . Path . Equals ( App . AppSettings . MusicPath , StringComparison . OrdinalIgnoreCase ) ) ;
134
134
break ;
135
135
case "Videos" :
136
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . VideosPath , new SuppressNavigationTransitionInfo ( ) ) ;
137
- LocationsList . SelectedItem = App . sideBarItems . First ( x => x . Path . Equals ( App . VideosPath , StringComparison . OrdinalIgnoreCase ) ) ;
136
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . AppSettings . VideosPath , new SuppressNavigationTransitionInfo ( ) ) ;
137
+ LocationsList . SelectedItem = App . sideBarItems . First ( x => x . Path . Equals ( App . AppSettings . VideosPath , StringComparison . OrdinalIgnoreCase ) ) ;
138
138
break ;
139
139
140
140
default :
141
141
if ( NavParams . Contains ( "C:" , StringComparison . OrdinalIgnoreCase ) )
142
142
{
143
- DrivesList . SelectedItem = App . foundDrives . First ( x => x . tag . ToString ( ) . Equals ( "C:\\ " , StringComparison . OrdinalIgnoreCase ) ) ;
143
+ DrivesList . SelectedItem = SettingsViewModel . foundDrives . First ( x => x . tag . ToString ( ) . Equals ( "C:\\ " , StringComparison . OrdinalIgnoreCase ) ) ;
144
144
}
145
145
else
146
146
{
@@ -224,47 +224,47 @@ private void LocationsList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView
224
224
LayoutItems . isEnabled = false ;
225
225
break ;
226
226
case "Desktop" :
227
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DesktopPath , new SuppressNavigationTransitionInfo ( ) ) ;
227
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . AppSettings . DesktopPath , new SuppressNavigationTransitionInfo ( ) ) ;
228
228
PathText . Text = "Desktop" ;
229
229
HomeItems . isEnabled = false ;
230
230
ShareItems . isEnabled = false ;
231
231
232
232
LayoutItems . isEnabled = true ;
233
233
break ;
234
234
case "Downloads" :
235
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DownloadsPath , new SuppressNavigationTransitionInfo ( ) ) ;
235
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . AppSettings . DownloadsPath , new SuppressNavigationTransitionInfo ( ) ) ;
236
236
PathText . Text = "Downloads" ;
237
237
HomeItems . isEnabled = false ;
238
238
ShareItems . isEnabled = false ;
239
239
240
240
LayoutItems . isEnabled = true ;
241
241
break ;
242
242
case "Documents" :
243
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DocumentsPath , new SuppressNavigationTransitionInfo ( ) ) ;
243
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . AppSettings . DocumentsPath , new SuppressNavigationTransitionInfo ( ) ) ;
244
244
PathText . Text = "Documents" ;
245
245
HomeItems . isEnabled = false ;
246
246
ShareItems . isEnabled = false ;
247
247
248
248
LayoutItems . isEnabled = true ;
249
249
break ;
250
250
case "Pictures" :
251
- ItemDisplayFrame . Navigate ( typeof ( PhotoAlbum ) , App . PicturesPath , new SuppressNavigationTransitionInfo ( ) ) ;
251
+ ItemDisplayFrame . Navigate ( typeof ( PhotoAlbum ) , App . AppSettings . PicturesPath , new SuppressNavigationTransitionInfo ( ) ) ;
252
252
PathText . Text = "Pictures" ;
253
253
HomeItems . isEnabled = false ;
254
254
ShareItems . isEnabled = false ;
255
255
256
256
LayoutItems . isEnabled = true ;
257
257
break ;
258
258
case "Music" :
259
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . MusicPath , new SuppressNavigationTransitionInfo ( ) ) ;
259
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . AppSettings . MusicPath , new SuppressNavigationTransitionInfo ( ) ) ;
260
260
PathText . Text = "Music" ;
261
261
HomeItems . isEnabled = false ;
262
262
ShareItems . isEnabled = false ;
263
263
264
264
LayoutItems . isEnabled = true ;
265
265
break ;
266
266
case "Videos" :
267
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . VideosPath , new SuppressNavigationTransitionInfo ( ) ) ;
267
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . AppSettings . VideosPath , new SuppressNavigationTransitionInfo ( ) ) ;
268
268
PathText . Text = "Videos" ;
269
269
HomeItems . isEnabled = false ;
270
270
ShareItems . isEnabled = false ;
0 commit comments