Skip to content

Commit 974e23d

Browse files
committed
Fixed vst3validator and log file location dialogs
1 parent 524aa01 commit 974e23d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Source/MainComponent.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,14 @@ namespace
194194
message << "\n\n" << "\"None set\"";
195195

196196
std::shared_ptr<juce::AlertWindow> aw (juce::LookAndFeel::getDefaultLookAndFeel().createAlertWindow (TRANS("Set Log File Directory"), message,
197-
TRANS("Choose dir"), TRANS("Cancel"), TRANS("Don't save logs"),
197+
TRANS("Choose dir"), TRANS("Don't save logs"), TRANS("Cancel"),
198198
juce::AlertWindow::QuestionIcon, 3, nullptr));
199199
aw->enterModalState (true, juce::ModalCallbackFunction::create ([aw] (int res)
200200
{
201-
if (res == 3)
201+
if (res == 1)
202202
getAppPreferences().setValue ("outputDir", juce::String());
203203

204-
if (res == 1)
204+
if (res == 2)
205205
{
206206
const auto defaultDir = juce::File::getSpecialLocation (juce::File::userDesktopDirectory).getChildFile ("pluginval logs").getFullPathName();
207207
juce::FileChooser fc (TRANS("Directory to save log files"), defaultDir);
@@ -223,11 +223,11 @@ namespace
223223
message << "\n\n" << "\"None set\"";
224224

225225
std::shared_ptr<juce::AlertWindow> aw (juce::LookAndFeel::getDefaultLookAndFeel().createAlertWindow (TRANS("Set VST3 validator"), message,
226-
TRANS("Choose"), TRANS("Cancel"), TRANS("Don't use VST3 validator"),
226+
TRANS("Choose"), TRANS("Don't use VST3 validator"), TRANS("Cancel"),
227227
juce::AlertWindow::QuestionIcon, 3, nullptr));
228228
aw->enterModalState (true, juce::ModalCallbackFunction::create ([aw] (int res)
229229
{
230-
if (res == 3)
230+
if (res == 1)
231231
setVST3Validator ({});
232232

233233
if (res == 1)

0 commit comments

Comments
 (0)