diff options
Diffstat (limited to 'plugins/snippets')
-rwxr-xr-x | plugins/snippets/snippets/Manager.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/snippets/snippets/Manager.py b/plugins/snippets/snippets/Manager.py index e94cd283..f496b1c3 100755 --- a/plugins/snippets/snippets/Manager.py +++ b/plugins/snippets/snippets/Manager.py @@ -599,16 +599,17 @@ class Manager: if self.snippets_doc: self.snippets_doc.stop() - alloc = dlg.get_allocation() - self.default_size = [alloc.width, alloc.height] self.manager = None - self.unref_languages() self.snippet = None self.model = None self.dlg = None - def on_dialog_snippets_response(self, dlg, resp): + def on_dialog_snippets_response(self, dlg, resp): + + alloc = dlg.get_allocation() + self.default_size = [alloc.width, alloc.height] + if resp == Gtk.ResponseType.HELP: Pluma.help_display(self, 'pluma', 'pluma-snippets-plugin') return |