elementary / elementary/settings-locale

Installed Languages list does not refresh on changes

Open
#149 2 comments 1 reaction 0 assignees View on GitHub
Status: Confirmed
Dominant language
Vala
Stars
13
Forks
10
Avg merge
5h 13m
Merged PRs (30d)
1

Description

### What Happened?

Due to the cached array here:
https://github.com/elementary/switchboard-plug-locale/blob/a2e23143c6b4104c88f170883588d090556e893d/src/Utils.vala#L31-L35

Whenever we use the plug to install/remove languages, the list of installed languages displayed in the sidebar is not updated to reflect the new reality.

### Steps to Reproduce

1. Install or remove a language
2. See that the change is not reflected in the sidebar
3. Restarting switchboard causes the state to update

### Expected Behavior

Languages that are removed should be removed from the list on successful removal
Languages that are installed should be added to the list on successful installation

### OS Version

6.x (Odin)

### Software Version

Latest release (I have run all updates)

### Log Output

_No response_

### Hardware Info

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.