mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-29 02:40:05 +00:00
Introjucer: minor fixes.
This commit is contained in:
parent
770d1ccd49
commit
63085a7185
2 changed files with 15 additions and 14 deletions
|
|
@ -479,11 +479,24 @@ public:
|
|||
if (logger == nullptr)
|
||||
{
|
||||
logger = FileLogger::createDateStampedLogger (getLogFolderName(), filePrefix, ".txt",
|
||||
getApplicationName() + " " + getApplicationVersion());
|
||||
getApplicationName() + " " + getApplicationVersion()
|
||||
+ " --- Build date: " __DATE__);
|
||||
Logger::setCurrentLogger (logger);
|
||||
}
|
||||
}
|
||||
|
||||
struct FileWithTime
|
||||
{
|
||||
FileWithTime (const File& f) : file (f), time (f.getLastModificationTime()) {}
|
||||
FileWithTime() {}
|
||||
|
||||
bool operator< (const FileWithTime& other) const { return time < other.time; }
|
||||
bool operator== (const FileWithTime& other) const { return time == other.time; }
|
||||
|
||||
File file;
|
||||
Time time;
|
||||
};
|
||||
|
||||
void deleteLogger()
|
||||
{
|
||||
const int maxNumLogFilesToKeep = 50;
|
||||
|
|
@ -497,18 +510,6 @@ public:
|
|||
|
||||
if (logFiles.size() > maxNumLogFilesToKeep)
|
||||
{
|
||||
struct FileWithTime
|
||||
{
|
||||
FileWithTime (const File& f) : file (f), time (f.getLastModificationTime()) {}
|
||||
FileWithTime() {}
|
||||
|
||||
bool operator< (const FileWithTime& other) const { return time < other.time; }
|
||||
bool operator== (const FileWithTime& other) const { return time == other.time; }
|
||||
|
||||
File file;
|
||||
Time time;
|
||||
};
|
||||
|
||||
Array <FileWithTime> files;
|
||||
|
||||
for (int i = 0; i < logFiles.size(); ++i)
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ public:
|
|||
|
||||
void updateMissingFileStatuses();
|
||||
virtual void createProjectTabs();
|
||||
void deleteProjectTabs();
|
||||
virtual void deleteProjectTabs();
|
||||
void rebuildProjectTabs();
|
||||
|
||||
void showBubbleMessage (const Rectangle<int>& pos, const String& text);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue