Incremental preference reset

This read-only archive contains discussions from the Adding Feature forum.
New feature request may be posted to the Adding Feature forum.
Technical support is available via the Help forum.
Locked
Edgar
Forum Crew
Posts: 2043
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Incremental preference reset

Post by Edgar » Mon Nov 17, 2014 6:37 am

Is this something vaguely like what y'all envision:
global.png
global.png (39.83 KiB) Viewed 985 times
devices.png
devices.png (42.98 KiB) Viewed 985 times
Source code file & two header files attached; I can help anyone figure out how to compile it on Windows; I could figure out how to do it using make which should probably work for all three platforms. Only the Global & Devices tabs are interesting. The button on the global panel actually works by deleting audacity.cfg. Nothing on the Devices tab is functional; none of the buttons on any of the rest of the tabs are functional.
Attachments
reset.zip
(6.4 KiB) Downloaded 46 times
-Edgar
running Audacity personally customized 2.0.6 daily in a professional audio studio
occasionally using current Audacity alpha for testing and support situations
64-bit Windows Pro 10

waxcylinder
Forum Staff
Posts: 14684
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Incremental preference reset

Post by waxcylinder » Mon Nov 17, 2014 10:27 am

Ed, do I assume correctly that this is intended to be the external "sledgehammer" ?

If so then this is more of a "swiss army knife" than a "sledgehammer"

For my money the "sledgehammer" should just do the global reset - by deleting the .cfg file (after checking that Audacity is not running and giving suitable dire warnings).

The finessed, individual resets are best done imo on the Preferences panes. The Proposal in the Wiki calls for:

Two buttons within Audacity on each Preferences pane
a) reset audacity.cfg - a global Preferences reset
b) "Reset" or "Defaults" button to reset only Preferences shown on than pane

or, a new "Reset" Preferences pane (with partial or full wipe)

A method for both Mac and Windows including zip users to reset .cfg when Audacity won't launch/visibly crashes on launch.


Peter.
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

Edgar
Forum Crew
Posts: 2043
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Re: Incremental preference reset

Post by Edgar » Mon Nov 17, 2014 5:53 pm

external
-Edgar
running Audacity personally customized 2.0.6 daily in a professional audio studio
occasionally using current Audacity alpha for testing and support situations
64-bit Windows Pro 10

Locked