From 471958dc093feb8f973d2ab2bc16e6b2644d46d3 Mon Sep 17 00:00:00 2001 From: James Zhang Date: Tue, 29 Apr 2014 22:00:19 -0400 Subject: [PATCH] Release 1.0.3: Fix toggle on/off bug --- auto_save.py | 8 ++------ messages.json | 5 +++-- messages/1.0.3.txt | 4 ++++ 3 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 messages/1.0.3.txt diff --git a/auto_save.py b/auto_save.py index 72a5e2f..03d5d01 100644 --- a/auto_save.py +++ b/auto_save.py @@ -24,8 +24,6 @@ def on_modified(self, view): settings = sublime.load_settings(settings_filename) delay = settings.get(delay_field) - AutoSaveListener.save_queue.append(0) # Append to queue for every on_modified event. - ''' If the queue is longer than 1, pop the last item off, @@ -39,11 +37,9 @@ def debounce_save(): AutoSaveListener.save_queue = [] - ''' - Debounce save by the specified delay. - ''' if settings.get(on_modified_field) and view.file_name(): - Timer(delay, debounce_save).start() + AutoSaveListener.save_queue.append(0) # Append to queue for every on_modified event. + Timer(delay, debounce_save).start() # Debounce save by the specified delay. class AutoSaveCommand(sublime_plugin.TextCommand): diff --git a/messages.json b/messages.json index 20b6930..fa56159 100644 --- a/messages.json +++ b/messages.json @@ -1,5 +1,6 @@ { "install": "messages/install.txt", "1.0.1": "messages/1.0.1.txt", - "1.0.2": "messages/1.0.2.txt" -} \ No newline at end of file + "1.0.2": "messages/1.0.2.txt", + "1.0.3": "messages/1.0.3.txt", +} diff --git a/messages/1.0.3.txt b/messages/1.0.3.txt new file mode 100644 index 0000000..435b073 --- /dev/null +++ b/messages/1.0.3.txt @@ -0,0 +1,4 @@ +Fixes: + +* Fixed bug where turning on/off resulted in plugin breaking. +* Thanks for reporting the issue, https://github.com/fertingoff