-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Allow users to export or import user-settings file in a GUI environment #2394
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
Conversation
Change 'Preferences' to 'Settings' for natural expression See the issue #2393
mgrojo
left a comment
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.
Nice feature and good implementation. Please, take into account just a pair of minor changes requested.
Use range-base for loops instead of foreach Rename verifyUserSettingsFile() to isVaildSettingsFile() for readability
|
Thanks for the review. I just modified and committed it. Could you take a look? |
|
Awesome! Another feature in development version. 👍 |
|
By the way, there is room for improvement about having to restart the application to apply the settings. Have you tried to make that work? We have the same problem when changing the language, but I suppose there could be problems due to Qt limitations (I haven't investigated it myself though). But maybe in this case it's just a matter of calling |
|
Yes, that's a good point. It can be applied immediately by However, since the 'language' is also included in the settings file, I decided to request a restart. |
|
Yes, that makes sense. |
|
Which method do you think is better?
|
|
I think 2 and 3 is the best approach. 3 should reuse the current message dialog for notifying the user. |
|
OK. Let's proceed with the modification. :)
|
|
One more thing, I think we need save settings before export settings. However, since this closes the PreferencesDialog and opens the FileDialog, it may be a little unnatural. |
|
I see. Having these buttons in the Preferences dialog complicates the implementation. Maybe you have to split (or add a parameter to) |
|
Cool, this is a simple fix so I just committed it to the master branch without pr. 0031d9a |
This patch changes to allow users to export or import user-settings file in a GUI environment.
This PR is related to issue #2393.
Detailed Changes
So it is be changed to 'Settings' and also, the following two command line options change accordingly:
-p [preferences_file]->-S [settings_file]--preferences [preferences_file]->--settings [settings_file]Need HelpIn issue #2393, @chrisjlocke showed a prototype of a new buttons to the left of the existing 'Restore Defaults` button.I thought this is better, so I tried but failed due to my lack of ability. May I get any advice on this part?This section has been patched with the following commit: b5a0d53
Test Environment
Thank you.