Skip to content

Commit

Permalink
Merge pull request VixenLights#584 from johncbaur/VIX-3275
Browse files Browse the repository at this point in the history
VIX-3275 Default the Fixture Element Name to the Profile Name
  • Loading branch information
jeffu231 authored Feb 4, 2024
2 parents b35e765 + 69e2b73 commit 0616c5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected override Task<bool> SaveAsync()
// Get the child view models
IEnumerable<IViewModel> childViewModels = this.GetChildViewModels();

// Retreive the fixture property editor view model
// Retrieve the fixture property editor view model
FixturePropertyEditorViewModel fixtureEditor = (FixturePropertyEditorViewModel)childViewModels.Single(vm => vm is FixturePropertyEditorViewModel);

// Retrieve the fixture profile from the view model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ public GroupingWizardPageViewModel(GroupingWizardPage wizardPage) :
// Default to only creating one fixture
NumberOfFixtures = 1;

// Default the fixture prefix to 'Fixture_'
ElementPrefix = "Fixture_";
// Retrieve the select profile page model
SelectProfileWizardPage selectProfilePage = (SelectProfileWizardPage)Wizard.Pages.Single(page => page is SelectProfileWizardPage);

// Default the fixture prefix to the name of the profile
ElementPrefix = selectProfilePage.ProfileName;

// Default to creating a group for the fixtures
CreateGroup = true;
Expand Down

0 comments on commit 0616c5c

Please sign in to comment.