// This file must only be included from SettingsList.hpp

#ifndef SETTINGS_SECTION
#   define SETTINGS_SECTION(...)
#endif

SETTINGS_SECTION
(
    Material::screwdriver, "Miscellaneous",

    DECL_CLIENT_ONLY_SETTING
    (
        TemperatureScale, preferredTemperatureScale, TemperatureScale::Celsius,
        "Temperature scale",

        "Controls which units to use when showing temperatures.",

        {ofs << getTemperatureScaleEnumName(preferredTemperatureScale);},

        {SETTING_VALUE = getTemperatureScaleByEnumName(value); return "";},

        new TemperatureScaleSelector()
    )
)