ENH: Click RecentFile once in second

JIRA: none
Change-Id: I1e35b42223b3af9529556259d8584c16e5386a93
This commit is contained in:
zorro.zhang 2025-04-08 19:48:25 +08:00 committed by Lane.Wei
parent 2fa2bb24b3
commit fda63da85d
1 changed files with 16 additions and 7 deletions

View File

@ -431,11 +431,19 @@ function OnClickOpenProject()
SendWXMessage( JSON.stringify(tSend) );
}
let RecentClick=true;
function OnOpenRecentFile( strPath )
{
if( RecentPage_Mode!=Recent_Normal )
return;
if(RecentClick)
{
RecentClick = false;
setTimeout(() => {
RecentClick = true;
}, 1000);
var tSend={};
tSend['sequence_id']=Math.round(new Date() / 1000);
tSend['command']="homepage_open_recentfile";
@ -443,6 +451,7 @@ function OnOpenRecentFile( strPath )
tSend['data']['path']=decodeURI(strPath);
SendWXMessage( JSON.stringify(tSend) );
}
}
function OnDeleteRecentFile( )