[PATCH 1/2] Make sure to install document handler for first document



---
 plugins/snippets/snippets/WindowHelper.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/plugins/snippets/snippets/WindowHelper.py b/plugins/snippets/snippets/WindowHelper.py
index 500120d..29bf3a5 100644
--- a/plugins/snippets/snippets/WindowHelper.py
+++ b/plugins/snippets/snippets/WindowHelper.py
@@ -198,6 +198,8 @@ class WindowHelper:
                 if isinstance(view, gedit.View) and not self.has_controller(view):
                         view._snippet_controller = Document(self, view)
 
+                self.update()
+
         def on_action_snippets_activate(self, item):
                 self.plugin.create_configure_dialog()
 
-- 
1.7.0


--------------030808020502090002060608
Content-Type: text/x-diff;
 name="0002-Make-sure-to-propagate-result-of-accelerator-activat.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0="0002-Make-sure-to-propagate-result-of-accelerator-activat.pa";
 filename*1="tch"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]