Skip to content

Commit

Permalink
Add small delay to prevent possible crashes, v. 0.1.0.1 - 2014-04-20
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Apr 20, 2014
1 parent 8cbe595 commit 2a86d51
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions forgetAboutTab.js
@@ -1,8 +1,9 @@
// http://akelpad.sourceforge.net/forum/viewtopic.php?p=19810#19810
// http://infocatcher.ucoz.net/js/akelpad_scripts/forgetAboutTab.js
// https://github.com/Infocatcher/AkelPad_scripts/blob/master/forgetAboutTab.js

// (c) Infocatcher 2012
// version 0.1.0 - 2012-09-17
// (c) Infocatcher 2012, 2014
// version 0.1.0.1 - 2014-04-20

// Close current tab and remove information about it from recent files

Expand All @@ -21,7 +22,9 @@
var file = AkelPad.GetArgValue("file", "") || AkelPad.GetEditFile(0);
var ask = AkelPad.GetArgValue("confirm", true);
if(file && (!ask || confirm())) {
WScript.Sleep(50);
AkelPad.Command(4318 /*IDM_WINDOW_FRAMECLOSE*/);
//WScript.Sleep(50);
AkelPad.Call("Scripts::Main", 1, "DeleteRecentFile.js", file);
}

Expand Down

0 comments on commit 2a86d51

Please sign in to comment.