public static void LoadQualitySettings(LayeredProfile layeredProfile, Printer printer)
        {
            var collections = Datastore.Instance.dbSQLite.Table <SliceSettingsCollection>().Where(v => v.PrinterId == printer.Id && v.Tag == "quality");

            foreach (var collection in collections)
            {
                var settingsDictionary = LoadSettings(collection);
                layeredProfile.QualityLayers[collection.Name] = new SettingsLayer(settingsDictionary);
            }
        }
        private static void LoadMaterialSettings(LayeredProfile layeredProfile, Printer printer)
        {
            var materialAssignments = printer.MaterialCollectionIds?.Split(',');

            if (materialAssignments == null)
            {
                return;
            }

            var collections = Datastore.Instance.dbSQLite.Table <SliceSettingsCollection>().Where(v => v.PrinterId == printer.Id && v.Tag == "material");

            foreach (var collection in collections)
            {
                var settingsDictionary = LoadSettings(collection);
                layeredProfile.MaterialLayers[collection.Name] = new SettingsLayer(settingsDictionary);
            }
        }