Use named variable to better portray logic
This commit is contained in:
parent
cd68156478
commit
d6b60e6149
1 changed files with 3 additions and 1 deletions
|
|
@ -68,7 +68,9 @@ namespace MatterHackers.MatterControl
|
|||
bool isActiveStage = stage == value;
|
||||
bool noActiveStage = value == null;
|
||||
|
||||
kvp.Value.Enabled = noActiveStage || isActiveStage;
|
||||
// Enable GuiWidget when no stage is active or when the current stage is active and enabled
|
||||
var widget = kvp.Value;
|
||||
widget.Enabled = noActiveStage || isActiveStage;
|
||||
}
|
||||
|
||||
// Shutdown the active Wizard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue