Browse Source

Introjucer: minor fixes.

tags/2021-05-28
jules 13 years ago
parent
commit
63085a7185
2 changed files with 15 additions and 14 deletions
  1. +14
    -13
      extras/Introjucer/Source/Application/jucer_Application.h
  2. +1
    -1
      extras/Introjucer/Source/Project/jucer_ProjectContentComponent.h

+ 14
- 13
extras/Introjucer/Source/Application/jucer_Application.h View File

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


+ 1
- 1
extras/Introjucer/Source/Project/jucer_ProjectContentComponent.h View File

@@ -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…
Cancel
Save