Skip to content

Commit

Permalink
Fix _InputQuickpanelListener name
Browse files Browse the repository at this point in the history
ST4 ignores all protected module attributes (prepended with underscore).
  • Loading branch information
deathaxe committed Dec 30, 2024
1 parent 4ae3594 commit 67d6d43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions latextools_utils/input_quickpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
)

0 comments on commit 67d6d43

Please sign in to comment.