From e76895e109180f842e74b4671de99e8e706ae0ac Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 11 Nov 2014 15:03:47 +0000 Subject: [PATCH] More auto-updating --- .../Source/Application/jucer_AutoUpdater.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/extras/Introjucer/Source/Application/jucer_AutoUpdater.h b/extras/Introjucer/Source/Application/jucer_AutoUpdater.h index b5086b2947..20cbfa90a7 100644 --- a/extras/Introjucer/Source/Application/jucer_AutoUpdater.h +++ b/extras/Introjucer/Source/Application/jucer_AutoUpdater.h @@ -141,12 +141,19 @@ return true; } 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()); if (isJuceModulesFolder (targetFolder)) 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); if (chooser.browseForDirectory()) @@ -197,9 +204,6 @@ return true; static bool isZipFolder (const File& f) { -JUCE_COMPILER_WARNING("testing") -return true; - return f.getChildFile ("modules").isDirectory() && f.getChildFile ("extras").isDirectory() && f.getChildFile ("examples").isDirectory()