From 67d6d43ae6445672267bde55ca428d886c2d29e0 Mon Sep 17 00:00:00 2001 From: deathaxe Date: Mon, 30 Dec 2024 15:59:35 +0100 Subject: [PATCH] Fix _InputQuickpanelListener name ST4 ignores all protected module attributes (prepended with underscore). --- latextools_utils/input_quickpanel.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/latextools_utils/input_quickpanel.py b/latextools_utils/input_quickpanel.py index 6f561260..fe127ec4 100644 --- a/latextools_utils/input_quickpanel.py +++ b/latextools_utils/input_quickpanel.py @@ -26,14 +26,14 @@ import sublime import sublime_plugin -exports = ["_InputQuickpanelListener", "LatextoolsConfirmQuickpanelCommand"] +exports = ["InputQuickpanelListener", "LatextoolsConfirmQuickpanelCommand"] _DO_NOTHING = 0 _SEARCH_QUICKPANEL = 1 _CAPTURE_QUICKPANEL = 2 -class _InputQuickpanelListener(sublime_plugin.EventListener): +class InputQuickpanelListener(sublime_plugin.EventListener): _capturing = _DO_NOTHING _confirmed = False _view_id = -1 @@ -107,11 +107,11 @@ def on_query_context(self, view, key, operator, operand, match_all): class LatextoolsConfirmQuickpanelCommand(sublime_plugin.WindowCommand): def run(self): - _InputQuickpanelListener.confirm_quickpanel(self.window) + InputQuickpanelListener.confirm_quickpanel(self.window) # on_done: (int/None, str) => ? def show_input_quick_panel(window, items, on_done, flags=0, selected_index=-1, on_highlight=None): - _InputQuickpanelListener.capture_and_show_input_quick_panel( + InputQuickpanelListener.capture_and_show_input_quick_panel( window, items, on_done, flags, selected_index, on_highlight )