@@ -149,15 +149,15 @@ public MainWindowViewModel()
149149 ReloadCommand = new CommandHandler ( ReloadCache , CanExecuteMethod ) ;
150150 LogoutCommand = new CommandHandler ( Logout , CanExecuteMethod ) ;
151151 ToParentFolderCommand = new CommandHandler ( ToParentFolder , CanExecuteMethod ) ;
152- GetProfileInfoCommand = new CommandHandler ( GetProfileInfo , CanExecuteMethod ) ;
152+ // GetProfileInfoCommand = new CommandHandler(GetProfileInfo, CanExecuteMethod);
153153 //GetProfileInfoCommand.Execute(null);
154154 // OnLoad runs the login and gets the shared drives
155155 GetUserInformation ( ) ;
156156 }
157157
158158 public async void GetUserInformation ( )
159159 {
160- CurrentUsername = "Hi, " ( await graph . GetOneDriveUserInformationAsync ( ) ) . GivenName ;
160+ CurrentUsername = "Hi, " + ( await graph . GetOneDriveUserInformationAsync ( ) ) . GivenName ;
161161 ProfileImage = await graph . GetOneDriveOwnerPhotoAsync ( ) ;
162162 }
163163
@@ -275,6 +275,7 @@ public async void GetChildrenFomItem(object obj)
275275 }
276276 else
277277 {
278+ App . Current . MainWindow . Hide ( ) ;
278279 OpenItemWithVideoPlayer ( SelectedExplorerItem ) ;
279280 }
280281 Console . WriteLine ( " + Loaded children from folder item." ) ;
@@ -315,9 +316,8 @@ private void ToParentFolder(object obj)
315316
316317
317318 /// <summary>
318- /// Test code. Do not remove without asking @Tim Gels first .
319+ /// Changes XAML Elements on runtime .
319320 /// </summary>
320- /// This method is created so i could test how to detect and change the personal user drive on runtime.
321321 /// <param name="value"></param>
322322 /// <param name="targetType"></param>
323323 /// <param name="parameter"></param>
0 commit comments