mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 15:16:10 +02:00
dont rebuild imagelist cache on application exit
git-svn-id: trunk@13027 -
This commit is contained in:
parent
47ab9233e4
commit
60f9fecfd1
@ -29,7 +29,7 @@ unit ImageListCache;
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, Graphics, ImgList, LCLProc;
|
||||
Classes, SysUtils, Graphics, ImgList, LCLProc, Forms;
|
||||
|
||||
type
|
||||
// interface that cache user should have to listen for cache changes
|
||||
@ -109,7 +109,7 @@ end;
|
||||
|
||||
procedure TImageListCache.CheckRebuildNeed;
|
||||
begin
|
||||
if FObsoletedCount >= ImageListCacheRebuildThreashold then
|
||||
if (FObsoletedCount >= ImageListCacheRebuildThreashold) and not Application.Terminated then
|
||||
Rebuild;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user