-
Notifications
You must be signed in to change notification settings - Fork 404
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
Surge::UserInteractions::promptOKCancel handling #3435
Comments
I have also noticed if we save a patch and it already exists, the overwrite system dialog that shows up doesn't even play an asterisk sound (which happens normally for other programs I use). Weird? |
i mean, i wrote the windows code to show that dialog ,and i copied it from stack overflow. So 🤷 It should really be an in-UI gui anyway. That's the point here. |
Aha so basically like miniedit but without textedit field. Easy enough! |
bingo |
Oh this is also used on tuning load path. Sigh. tricky. |
I'm gonna leave this and restructure it in the XT codepath once we are in JUCE-only mode |
Addresses surge-synthesizer#4337 Closes surge-synthesizer#2671 surge-synthesizer#3435 Refactor/Remove the UserInteractions in favor of JUCE equivalents and appropirate wrappers - openURL -> juce::URL.lauch - showHTML -> surgeguieditor builtin - Remove openFileInFinder or whatnot for juce::URL(juce::File()).laucnh - promptInfo removed; single use replaced with an Alert box - Remove UserInteractions::promptError to be data driven - promptOKCancel moved to a gui free function which can be replaced and is replaced in SGE - promptFileOpen replaced with juce::FileChooser - Finally, remove the old files which were no longer used
Addresses #4337 Closes #2671 #3435 Refactor/Remove the UserInteractions in favor of JUCE equivalents and appropirate wrappers - openURL -> juce::URL.lauch - showHTML -> surgeguieditor builtin - Remove openFileInFinder or whatnot for juce::URL(juce::File()).laucnh - promptInfo removed; single use replaced with an Alert box - Remove UserInteractions::promptError to be data driven - promptOKCancel moved to a gui free function which can be replaced and is replaced in SGE - promptFileOpen replaced with juce::FileChooser - Finally, remove the old files which were no longer used
This UI is used in one and only one place, which is SurgeSynthesizer when you save a patch which is there. There's a few problems with it
So I propose we have a "SurgeStorage::patchExists" function or some such which tells us if we are going to overwrite. Rather than SGE calling save, SGE calls patchExists and if it gets a yess, prompts in SGE land for an OK cancel and save. Then Synth::save just always overwrites.
The text was updated successfully, but these errors were encountered: