| @@ -141,12 +141,19 @@ return true; | |||||
| } | } | ||||
| else | else | ||||
| { | { | ||||
| if (! AlertWindow::showOkCancelBox (AlertWindow::WarningIcon, | |||||
| TRANS("Download JUCE version 123?").replace ("123", info.version), | |||||
| TRANS("A new version of JUCE is available - would you like to download it?"))) | |||||
| { | |||||
| return; | |||||
| } | |||||
| File targetFolder (findDefaultModulesFolder()); | File targetFolder (findDefaultModulesFolder()); | ||||
| if (isJuceModulesFolder (targetFolder)) | if (isJuceModulesFolder (targetFolder)) | ||||
| targetFolder = targetFolder.getParentDirectory(); | targetFolder = targetFolder.getParentDirectory(); | ||||
| FileChooser chooser (TRANS("Please select the location into which you'd like to download the new version"), | |||||
| FileChooser chooser (TRANS("Please select the location into which you'd like to install the new version"), | |||||
| targetFolder); | targetFolder); | ||||
| if (chooser.browseForDirectory()) | if (chooser.browseForDirectory()) | ||||
| @@ -197,9 +204,6 @@ return true; | |||||
| static bool isZipFolder (const File& f) | static bool isZipFolder (const File& f) | ||||
| { | { | ||||
| JUCE_COMPILER_WARNING("testing") | |||||
| return true; | |||||
| return f.getChildFile ("modules").isDirectory() | return f.getChildFile ("modules").isDirectory() | ||||
| && f.getChildFile ("extras").isDirectory() | && f.getChildFile ("extras").isDirectory() | ||||
| && f.getChildFile ("examples").isDirectory() | && f.getChildFile ("examples").isDirectory() | ||||