File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
External/Plugins/CodeRefactor Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -346,12 +346,11 @@ private void UpdateMenuItems()
346
346
IASContext context = ASContext . Context ;
347
347
if ( context != null && context . CurrentModel != null )
348
348
{
349
- bool truncate = langIsValid && context . CurrentModel . Imports . Count > 0 ;
350
- bool organize = ( langIsValid && context . CurrentModel . Imports . Count > 1 ) ;
351
- this . refactorContextMenu . OrganizeMenuItem . Enabled = organize ;
352
- this . refactorContextMenu . TruncateMenuItem . Enabled = truncate ;
353
- this . refactorMainMenu . OrganizeMenuItem . Enabled = organize ;
354
- this . refactorMainMenu . TruncateMenuItem . Enabled = truncate ;
349
+ bool enabled = langIsValid && context . CurrentModel . Imports . Count > 0 ;
350
+ this . refactorContextMenu . OrganizeMenuItem . Enabled = enabled ;
351
+ this . refactorContextMenu . TruncateMenuItem . Enabled = enabled ;
352
+ this . refactorMainMenu . OrganizeMenuItem . Enabled = enabled ;
353
+ this . refactorMainMenu . TruncateMenuItem . Enabled = enabled ;
355
354
}
356
355
this . surroundContextMenu . Enabled = false ;
357
356
this . refactorMainMenu . SurroundMenu . Enabled = false ;
You can’t perform that action at this time.
0 commit comments