FIX: [STUDIO-2865] only send changed thubmails to home page

Change-Id: I88ae0dd3a47c4cf02bf97978a22fd72ed0ef0299
This commit is contained in:
chunmao.guo 2023-05-18 18:42:50 +08:00 committed by Lane.Wei
parent 1cde1ebaed
commit dfd049374c
6 changed files with 18 additions and 14 deletions

View file

@ -21,6 +21,7 @@ var RightBtnFilePath='';
var MousePosX=0;
var MousePosY=0;
var sImages = {};
function Set_RecentFile_MouseRightBtn_Event()
{
@ -183,10 +184,11 @@ function ShowRecentFileList( pList )
{
let OneFile=pList[n];
let sImg=OneFile["image"];
let sPath=OneFile['path'];
let sImg=OneFile["image"] || sImages[sPath];
let sTime=OneFile['time'];
let sName=OneFile['project_name'];
sImages[sPath] = sImg;
//let index=sPath.lastIndexOf('\\')>0?sPath.lastIndexOf('\\'):sPath.lastIndexOf('\/');
//let sShortName=sPath.substring(index+1,sPath.length);