ENH: Click RecentFile once in second
JIRA: none Change-Id: I1e35b42223b3af9529556259d8584c16e5386a93
This commit is contained in:
parent
2fa2bb24b3
commit
fda63da85d
|
@ -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( )
|
||||
|
|
Loading…
Reference in New Issue