Skip to content
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

Add "restore defaults" buttons in Preferences #86

Closed
jidanni opened this issue Apr 19, 2020 · 1 comment
Closed

Add "restore defaults" buttons in Preferences #86

jidanni opened this issue Apr 19, 2020 · 1 comment

Comments

@jidanni
Copy link
Contributor

jidanni commented Apr 19, 2020

  • Edit > Preferences > General needs a "restore defaults" button at bottom.
  • Edit > Preferences > Startup needs a "restore defaults" button at bottom.
  • ...

Yup, all of them need a "restore defaults" button at bottom.

In fact there also needs to be a master "restore defaults" button at the
bottom of just Edit > Preferences too.

@rnorris
Copy link
Collaborator

rnorris commented Apr 21, 2020

Agreed. This would be useful to add.

NB You can manually work around restoring all defaults by via removing your ~/.viking/viking.prefs file, since this is where they are kept. Or you could remove individual lines in that file as it is just plain text.

rnorris added a commit that referenced this issue Jun 15, 2020
Rework all preferences to use the default_value() function.
Also makes it simpler to create groups of preferences
 as well as to reset any or all preferences.
rnorris added a commit that referenced this issue Jun 15, 2020
Button appended to each preferences group to invoke the reset.

Add method to refresh widgets of the property factory,
 which is used just for that particular group of preferences reset.
The refresh is mostly extracted from a_uibuilder_new_widget(),
 but ensures 0/null/blank values can be set to clear old values.
rnorris added a commit that referenced this issue Jun 15, 2020
Button only shown for the layer default edit.
Reset button is inserted into dialog level as this resets all tab (groups) data.
Every layer using uibuilder has a reset function added.
rnorris added a commit that referenced this issue Jun 15, 2020
Button only shown for the layer default edit.
Reset button is inserted into dialog level as this resets all tab (groups) data.
Every layer using uibuilder has a reset function added.
@rnorris rnorris closed this as completed Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants