Skip to content

Commit

Permalink
NXDRIVE-2639: Fix locale settings persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickaël Schoentgen authored and BoboTiG committed May 12, 2021
1 parent a79e292 commit fe8fb5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changes/5.1.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Release date: `2021-xx-xx`
- [NXDRIVE-2631](https://jira.nuxeo.com/browse/NXDRIVE-2631): Refetch local configuration on `nxdrive_home` change
- [NXDRIVE-2633](https://jira.nuxeo.com/browse/NXDRIVE-2633): Do not watch the local folder parent
- [NXDRIVE-2636](https://jira.nuxeo.com/browse/NXDRIVE-2636): Handle HTTP 405 (Method Not Allowed) errors
- [NXDRIVE-2639](https://jira.nuxeo.com/browse/NXDRIVE-2639): Fix locale settings persistence

### Direct Edit

Expand Down
4 changes: 4 additions & 0 deletions nxdrive/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ def __init__(self, home: Path, /) -> None:
# Force language
if Options.force_locale is not None:
self.set_config("locale", Options.force_locale)
else:
user_locale = self.get_config("locale")
if user_locale is not None:
Options.locale = user_locale

# Backward-compatibility: handle synchronization state early
if version_le(__version__, "5.1.2"):
Expand Down

0 comments on commit fe8fb5a

Please sign in to comment.