Skip to content

Commit

Permalink
Allow immediate-store of typeGroupFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
gzotti committed Oct 25, 2024
1 parent e4d7f47 commit 9c465c8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/gui/ViewDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -890,8 +890,20 @@ void ViewDialog::setSelectedTypesFromCheckBoxes()
flags |= Nebula::TypeOther;

GETSTELMODULE(NebulaMgr)->setTypeFilters(flags);
}

StelApp::immediateSave("dso_type_filters/flag_show_galaxies", flags.testFlag(Nebula::TypeGalaxies));
StelApp::immediateSave("dso_type_filters/flag_show_active_galaxies", flags.testFlag(Nebula::TypeActiveGalaxies));
StelApp::immediateSave("dso_type_filters/flag_show_interacting_galaxies", flags.testFlag(Nebula::TypeInteractingGalaxies));
StelApp::immediateSave("dso_type_filters/flag_show_open_clusters", flags.testFlag(Nebula::TypeOpenStarClusters));
StelApp::immediateSave("dso_type_filters/flag_show_globular_clusters", flags.testFlag(Nebula::TypeGlobularStarClusters));
StelApp::immediateSave("dso_type_filters/flag_show_bright_nebulae", flags.testFlag(Nebula::TypeBrightNebulae));
StelApp::immediateSave("dso_type_filters/flag_show_dark_nebulae", flags.testFlag(Nebula::TypeDarkNebulae));
StelApp::immediateSave("dso_type_filters/flag_show_planetary_nebulae", flags.testFlag(Nebula::TypePlanetaryNebulae));
StelApp::immediateSave("dso_type_filters/flag_show_hydrogen_regions", flags.testFlag(Nebula::TypeHydrogenRegions));
StelApp::immediateSave("dso_type_filters/flag_show_supernova_remnants", flags.testFlag(Nebula::TypeSupernovaRemnants));
StelApp::immediateSave("dso_type_filters/flag_show_galaxy_clusters", flags.testFlag(Nebula::TypeGalaxyClusters));
StelApp::immediateSave("dso_type_filters/flag_show_other", flags.testFlag(Nebula::TypeOther));
}

void ViewDialog::updateSelectedCatalogsCheckBoxes()
{
Expand Down

0 comments on commit 9c465c8

Please sign in to comment.