Commit 6d848db5 authored by Christian Winter's avatar Christian Winter

control + F5 to relead and delete autosave

parent ca0a0d5e
Pipeline #4801274 passed with stage
in 58 seconds
......@@ -79,7 +79,10 @@ class Logic {
GUI.notify("received focus");
}, false);
window.onbeforeunload = function () {
Saver.autoSave();
if (Input.isKeyDown(Key.Control))
localStorage.removeItem(Saver.autosaveFileName);
else
Saver.autoSave();
Preferences.savePreferences();
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment