mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-06 04:00:08 +00:00
Projucer: Updated some font use and removed the EULA if running without the live-coding DLL
This commit is contained in:
parent
025d04cbd1
commit
effb421be1
18 changed files with 71 additions and 1496 deletions
|
|
@ -102,7 +102,9 @@ void ProjucerApplication::initialise (const String& commandLine)
|
|||
return;
|
||||
}
|
||||
|
||||
if (! initialiseLog())
|
||||
openDocumentManager.registerType (new ProjucerAppClasses::LiveBuildCodeEditorDocument::Type(), 2);
|
||||
|
||||
if (! checkEULA())
|
||||
{
|
||||
quit();
|
||||
return;
|
||||
|
|
@ -128,23 +130,6 @@ void ProjucerApplication::initialiseBasics()
|
|||
icons = new Icons();
|
||||
}
|
||||
|
||||
bool ProjucerApplication::initialiseLog()
|
||||
{
|
||||
openDocumentManager.registerType (new ProjucerAppClasses::LiveBuildCodeEditorDocument::Type(), 2);
|
||||
|
||||
if (currentEULAHasBeenAcceptedPreviously())
|
||||
return true;
|
||||
|
||||
ScopedPointer<AlertWindow> eulaDialogue (new EULADialogue());
|
||||
bool hasBeenAccepted = (eulaDialogue->runModalLoop() == EULADialogue::accepted);
|
||||
setCurrentEULAAccepted (hasBeenAccepted);
|
||||
|
||||
if (hasBeenAccepted)
|
||||
return initialiseLogger ("log_");
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ProjucerApplication::initialiseLogger (const char* filePrefix)
|
||||
{
|
||||
if (logger == nullptr)
|
||||
|
|
@ -795,6 +780,18 @@ void ProjucerApplication::loginOrLogout()
|
|||
updateAllBuildTabs();
|
||||
}
|
||||
|
||||
bool ProjucerApplication::checkEULA()
|
||||
{
|
||||
if (currentEULAHasBeenAcceptedPreviously()
|
||||
|| ! ProjucerLicences::getInstance()->isDLLPresent())
|
||||
return true;
|
||||
|
||||
ScopedPointer<AlertWindow> eulaDialogue (new EULADialogue());
|
||||
bool hasBeenAccepted = (eulaDialogue->runModalLoop() == EULADialogue::accepted);
|
||||
setCurrentEULAAccepted (hasBeenAccepted);
|
||||
return hasBeenAccepted;
|
||||
}
|
||||
|
||||
bool ProjucerApplication::currentEULAHasBeenAcceptedPreviously() const
|
||||
{
|
||||
return getGlobalProperties().getValue (getEULAChecksumProperty()).getIntValue() != 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue