File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,16 @@ public async Task SaveChanges(ListedItem item)
25
25
var drive = ( BaseProperties as DriveProperties ) . Drive ;
26
26
if ( ! string . IsNullOrWhiteSpace ( ViewModel . ItemName ) && ViewModel . OriginalItemName != ViewModel . ItemName )
27
27
{
28
- if ( App . Connection != null )
28
+ if ( AppInstance . FilesystemViewModel != null )
29
29
{
30
- await App . Connection . SendMessageAsync ( new ValueSet ( ) {
30
+ await AppInstance . FilesystemViewModel . Connection . SendMessageAsync ( new ValueSet ( ) {
31
31
{ "Arguments" , "SetVolumeLabel" } ,
32
32
{ "drivename" , drive . Path } ,
33
33
{ "newlabel" , ViewModel . ItemName } } ) ;
34
34
_ = CoreApplication . MainView . ExecuteOnUIThreadAsync ( async ( ) =>
35
35
{
36
36
await drive . Update ( ) ;
37
- await App . CurrentInstance . FilesystemViewModel . SetWorkingDirectory ( drive . Path ) ;
37
+ await AppInstance . FilesystemViewModel . SetWorkingDirectory ( drive . Path ) ;
38
38
} ) ;
39
39
}
40
40
}
You can’t perform that action at this time.
0 commit comments