wwmm / easyeffects

Limiter, compressor, convolver, equalizer and auto volume and many other plugins for PipeWire applications
GNU General Public License v3.0
6.5k stars 269 forks source link

Put a confirm dialog box when pressing "reset settings" button #2273

Open denielton opened 1 year ago

denielton commented 1 year ago

EasyEffects Version

7.0.3-1

What package are you using?

Arch (easyeffects)

Distribution

Manjaro

Describe the bug

Easyeffects delete all presets files and restore default settings when clicking "reset settings" without a dialog box asking to confirm the action.

Expected Behavior

Dialog box appearing when pressing "reset settings" with the text "do you really want to delete all your preset config files and restore default settings? this action can not be undone"

Debug Log

Debug Log
``` Paste your log here ```

Additional Information

please

wwmm commented 1 year ago

Easyeffects delete all presets files

No. It doesn't delete the user preset files or the impulse response files. They stay inside ~/.config/easyeffects. What is in its gsettings database that is cleared.

DomiStyle commented 1 year ago

+1 for this. I accidentally hit it as well and lost my active effect pipeline.

Is there a way to restore it? I still have a btrfs snapshot from before I reset it but I can't find where EasyEffects stores those.

DomiStyle commented 1 year ago

Figured it out, the gsettings database is stored in ~/.var/app/com.github.wwmm.easyeffects/config/glib-2.0/settings/keyfile. Restoring that file from backup did the trick.