Skip to content

StringSetting: add password/echoMode support #2295

@alcxyz

Description

@alcxyz

Feature Request

StringSetting in qs.Modules.Plugins does not support password masking. When a plugin sets password: true on a StringSetting, QML treats it as an undeclared property, causing a load-time error. Because PluginListItem.qml loads settings via a dynamic Loader, this error is swallowed silently and the entire settings panel fails to render with no feedback.

Proposed Change

Add an optional password property (or echoMode) to StringSetting.qml that sets echoMode: TextInput.Password on the underlying DankTextField.

Something like:

property bool password: false

And on the DankTextField:

echoMode: root.password ? TextInput.Password : TextInput.Normal

Context

Discovered in DankCalendar where a CalDAV password field needed masking. The workaround is to remove the property and show the field as plaintext.

See: alcxyz/DankCalendar#19

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions