Add option to disable live reload
Fixes #344 (and hopefully silences a lot of support requests)
This commit is contained in:
parent
83416cd0bf
commit
a037dbe0fd
2 changed files with 4 additions and 1 deletions
|
@ -75,8 +75,10 @@
|
|||
//set this to enable autosave every X minutes
|
||||
"autosaveInterval": 0,
|
||||
"autosaveOnBlur": false,
|
||||
//If the editor jumps to the top on focus change, set this:
|
||||
"disableReload": false,
|
||||
|
||||
//Crazy? You might like Vim keybindings.
|
||||
//Wildly eccentric? You might like Vim keybindings.
|
||||
"emulateVim": false,
|
||||
|
||||
//Whether to show the "New file" tab button on the tab bar;
|
||||
|
|
|
@ -92,6 +92,7 @@ define([
|
|||
};
|
||||
|
||||
command.on("session:check-file", function() {
|
||||
if (Settings.get("user").disableReload) return;
|
||||
var tab = sessions.getCurrent();
|
||||
if (!tab.file || tab.file.virtual) return;
|
||||
tab.file.entry.file(function(entry) {
|
||||
|
|
Loading…
Reference in a new issue