Fix #364 - autosave only saves changed tabs

This commit is contained in:
Geraint White 2015-03-31 15:06:32 +01:00
parent c57fcf8c3d
commit 1ff333f1f1

View file

@ -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();
}
});