mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-19 04:09:40 +08:00
20 lines
675 B
Python
20 lines
675 B
Python
# Copyright (c) 2016 Ultimaker B.V.
|
|
# Uranium is released under the terms of the AGPLv3 or higher.
|
|
|
|
from UM.Settings.Models.SettingVisibilityHandler import SettingVisibilityHandler
|
|
|
|
class MaterialSettingsVisibilityHandler(SettingVisibilityHandler):
|
|
def __init__(self, parent = None, *args, **kwargs):
|
|
super().__init__(parent = parent, *args, **kwargs)
|
|
|
|
material_settings = set([
|
|
"material_print_temperature",
|
|
"material_bed_temperature",
|
|
"material_standby_temperature",
|
|
"cool_fan_speed",
|
|
"retraction_amount",
|
|
"retraction_speed",
|
|
])
|
|
|
|
self.setVisible(material_settings)
|