Browse Source

More auto-updating

tags/2021-05-28
jules 11 years ago
parent
commit
e76895e109
1 changed files with 8 additions and 4 deletions
  1. +8
    -4
      extras/Introjucer/Source/Application/jucer_AutoUpdater.h

+ 8
- 4
extras/Introjucer/Source/Application/jucer_AutoUpdater.h View File

@@ -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()


Loading…
Cancel
Save