-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Desktop: Fixes #9960: Creating a profile changes the language of Joplin #10038
Desktop: Fixes #9960: Creating a profile changes the language of Joplin #10038
Conversation
…com/cagnusmarlsen/joplin into locale-change-on-create-new-profile
|
@PackElend label me please |
| @@ -747,8 +747,10 @@ export default class BaseApplication { | |||
| } | |||
|
|
|||
| if (Setting.value('firstStart')) { | |||
| const locale = shim.detectAndSetLocale(Setting); | |||
| reg.logger().info(`First start: detected locale as ${locale}`); | |||
| if (!Setting.value('isSubProfile')) { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank for this fix. Would you mind adding a short comment to explain why we have this check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not at all, I've added a comment to the code.
PR Summary:
|
Summary
This fixes the issue where creating a new profile changes the languages of all profiles including the default profile to the system default language.
Fixes #9960.
Testing
Follow reproduction steps in #9960:
This has been tested successfully on Windows 11 and Ubuntu.