File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
Plugins/Flow.Launcher.Plugin.Program/Programs Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -462,18 +462,15 @@ private bool CanApplicationRunElevated()
462
462
{
463
463
return true ;
464
464
}
465
- else
465
+
466
+ var manifest = Package . Location + "\\ AppxManifest.xml" ;
467
+ if ( File . Exists ( manifest ) )
466
468
{
467
- var manifest = Package . Location + "\\ AppxManifest.xml" ;
468
- if ( File . Exists ( manifest ) )
469
- {
470
- var file = File . ReadAllText ( manifest ) ;
469
+ var file = File . ReadAllText ( manifest ) ;
471
470
472
- // Using OrdinalIgnoreCase since this is used internally
473
- if ( file . Contains ( "TrustLevel=\" mediumIL\" " , StringComparison . OrdinalIgnoreCase ) )
474
- {
475
- return true ;
476
- }
471
+ if ( file . Contains ( "TrustLevel=\" mediumIL\" " , StringComparison . OrdinalIgnoreCase ) )
472
+ {
473
+ return true ;
477
474
}
478
475
}
479
476
You can’t perform that action at this time.
0 commit comments