File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ public string ItemTooltipText
41
41
tooltipBuilder . AppendLine ( $ "{ "NameWithColon" . GetLocalizedResource ( ) } { Name } ") ;
42
42
tooltipBuilder . AppendLine ( $ "{ "ItemType" . GetLocalizedResource ( ) } { itemType } ") ;
43
43
tooltipBuilder . Append ( $ "{ "ToolTipDescriptionDate" . GetLocalizedResource ( ) } { ItemDateModified } ") ;
44
- if ( ! string . IsNullOrWhiteSpace ( FileSize ) )
44
+ if ( ! string . IsNullOrWhiteSpace ( FileSize ) )
45
45
tooltipBuilder . Append ( $ "{ Environment . NewLine } { "SizeLabel" . GetLocalizedResource ( ) } { FileSize } ") ;
46
- if ( SyncStatusUI . LoadSyncStatus )
46
+ if ( SyncStatusUI . LoadSyncStatus )
47
47
tooltipBuilder . Append ( $ "{ Environment . NewLine } { "syncStatusColumn/Header" . GetLocalizedResource ( ) } : { syncStatusUI . SyncStatusString } ") ;
48
48
49
49
return tooltipBuilder . ToString ( ) ;
@@ -401,6 +401,10 @@ public void UpdateContainsFilesFolders()
401
401
402
402
private bool CheckElevationRights ( )
403
403
{
404
+ // Avoid downloading file to check elevation
405
+ if ( SyncStatusUI . SyncStatus != CloudDriveSyncStatus . FileOnline )
406
+ return false ;
407
+
404
408
return IsShortcut
405
409
? ElevationHelpers . IsElevationRequired ( ( ( ShortcutItem ) this ) . TargetPath )
406
410
: ElevationHelpers . IsElevationRequired ( this . ItemPath ) ;
You can’t perform that action at this time.
0 commit comments