Skip to content

cache_default

HarmonyCacheDefaultSettings

Bases: BaseSettingsModel

Settings regarding behavior on detection of newer cache.

Source code in server/settings/cache_default.py
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class HarmonyCacheDefaultSettings(BaseSettingsModel):
    """Settings regarding behavior on detection of newer cache."""

    force_default: bool = SettingsField(
        default=False,
        title="Force cache conflict source",
        description=(
            "When a newer local version is detected, "
            "instead of prompting a dialog, always use "
            "local or pull from server"
        )
    )

    cache_default_source: str = SettingsField(
        "server",
        enum_resolver=cache_enum,
        title="Conflict source",
        description=(
            "Use Local will always pull from locally cached file "
            "if it's newer. From server will attempt to get a known version "
            "from server."
        )
    )