Add an option to never rename a file during the session
This commit is contained in:
parent
31b31654ec
commit
af8aa25228
@ -201,6 +201,7 @@ define(function () {
|
|||||||
|
|
||||||
out.cancel = "Annuler";
|
out.cancel = "Annuler";
|
||||||
out.cancelButton = 'Annuler (Échap)';
|
out.cancelButton = 'Annuler (Échap)';
|
||||||
|
out.doNotAskAgain = "Ne jamais renommer (Échap)";
|
||||||
|
|
||||||
out.historyText = "Historique";
|
out.historyText = "Historique";
|
||||||
out.historyButton = "Afficher l'historique du document";
|
out.historyButton = "Afficher l'historique du document";
|
||||||
|
|||||||
@ -204,6 +204,7 @@ define(function () {
|
|||||||
|
|
||||||
out.cancel = "Cancel";
|
out.cancel = "Cancel";
|
||||||
out.cancelButton = 'Cancel (esc)';
|
out.cancelButton = 'Cancel (esc)';
|
||||||
|
out.doNotAskAgain = "Always keep existing name (Esc)";
|
||||||
|
|
||||||
out.historyText = "History";
|
out.historyText = "History";
|
||||||
out.historyButton = "Display the document history";
|
out.historyButton = "Display the document history";
|
||||||
|
|||||||
@ -231,7 +231,7 @@ define([
|
|||||||
var newExt = newExtIdx !== -1 ? newName.slice(newExtIdx) : "";
|
var newExt = newExtIdx !== -1 ? newName.slice(newExtIdx) : "";
|
||||||
if (newExt !== ext) { newName += ext; }
|
if (newExt !== ext) { newName += ext; }
|
||||||
cb(newName);
|
cb(newName);
|
||||||
}, null, true);
|
}, {cancel: Messages.doNotAskAgain}, true);
|
||||||
};
|
};
|
||||||
var handleFileState = {
|
var handleFileState = {
|
||||||
queue: [],
|
queue: [],
|
||||||
@ -259,6 +259,7 @@ define([
|
|||||||
if (handleFileState.queue.length) { handleFile(handleFileState.queue.shift()); }
|
if (handleFileState.queue.length) { handleFile(handleFileState.queue.shift()); }
|
||||||
};
|
};
|
||||||
var getName = function () {
|
var getName = function () {
|
||||||
|
if (!showNamePrompt) { return void finish(); }
|
||||||
promptName(file, function (newName) {
|
promptName(file, function (newName) {
|
||||||
name = newName;
|
name = newName;
|
||||||
finish();
|
finish();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user