Don't show prompt if Document History is already open
parent
65f1127aa8
commit
2ec2de5a33
|
@ -1007,11 +1007,13 @@ function redo(){
|
|||
if ($document_history_prompt_window) {
|
||||
$document_history_prompt_window.close();
|
||||
}
|
||||
const $w = $document_history_prompt_window = new $Window();
|
||||
$w.title("Redo");
|
||||
$w.$content.html("Press <b>Ctrl+Shift+Y</b> at any time to open Document History.");
|
||||
// at any time* except in textarea, right?
|
||||
$w.$Button("Document History", show_document_history);
|
||||
if (!$document_history_window || $document_history_window.closed) {
|
||||
const $w = $document_history_prompt_window = new $Window();
|
||||
$w.title("Redo");
|
||||
$w.$content.html("Press <b>Ctrl+Shift+Y</b> at any time to open Document History.");
|
||||
// at any time* except in textarea, right?
|
||||
$w.$Button("Document History", show_document_history);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue