From 1ff333f1f12812ce200a210849f891ba7ab40c8b Mon Sep 17 00:00:00 2001 From: Geraint White Date: Tue, 31 Mar 2015 15:06:32 +0100 Subject: [PATCH] Fix #364 - autosave only saves changed tabs --- js/sessions/autosave.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/sessions/autosave.js b/js/sessions/autosave.js index a190282..43c2d11 100644 --- a/js/sessions/autosave.js +++ b/js/sessions/autosave.js @@ -20,7 +20,7 @@ define([ var autosave = function() { status.toast(i18n.get("fileAutosaving")); state.tabs.forEach(function(tab) { - if (tab.file && !tab.file.virtual) { + if (tab.file && !tab.file.virtual && tab.modified) { tab.save(); } });