mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-06 04:00:08 +00:00
More auto-updating
This commit is contained in:
parent
4b28a4bb23
commit
e76895e109
1 changed files with 8 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue