diff --git a/src/gui/ViewDialog.cpp b/src/gui/ViewDialog.cpp index 93477877207ee..a263cf0375593 100644 --- a/src/gui/ViewDialog.cpp +++ b/src/gui/ViewDialog.cpp @@ -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() {