Tweak dialog buttons

pull/268/merge
Lennart Kats 2017-01-17 13:19:59 +00:00
rodzic 5667bca5df
commit c24ddd334c
1 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -444,6 +444,8 @@ define(function(require, exports, module) {
path + " has been changed on disk.",
"Would you like to reload this file?",
yes, no, {
yes: "Reload",
no: "Keep current version",
all: Object.keys(changedPaths).length > 1
}
);
@ -542,10 +544,15 @@ define(function(require, exports, module) {
checkIfQueueIsEmpty();
},
{ all: Object.keys(removedPaths).length > 1 }
{
all: Object.keys(removedPaths).length > 1,
yes: "Keep open",
yestoall: "Keep all open",
no: "Close tab",
}
);
deleteDialog.on("show", function(){
deleteDialog.on("show", function() {
if (!tabManager.findTab(path))
return false;
});