diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-01-23 17:06:16 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-01-23 17:06:16 -0400 |
commit | 2844af3a0468fbef1d6322474119b5bc92a97243 (patch) | |
tree | 9d55656d3765c6bd8859e9a761127df1db5d0596 /apps/Sublime Text 4 | |
parent | 7883443d7e02485de4246f021d5d63e567f642d7 (diff) |
st4: hsmusic: fix error spam when not in a project
Diffstat (limited to 'apps/Sublime Text 4')
-rw-r--r-- | apps/Sublime Text 4/Packages/User/HSMusic Editing.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/Sublime Text 4/Packages/User/HSMusic Editing.py b/apps/Sublime Text 4/Packages/User/HSMusic Editing.py index 63e3dc3..bde61b0 100644 --- a/apps/Sublime Text 4/Packages/User/HSMusic Editing.py +++ b/apps/Sublime Text 4/Packages/User/HSMusic Editing.py @@ -6,6 +6,10 @@ import os class ProjectSpecificKeyBinding(sublime_plugin.EventListener): def on_query_context(self, view, key, operator, operand, match_all): current_project_name = view.window().project_file_name() + + if not current_project_name: + return None + if key != "project_name" and os.path.isfile(current_project_name): return None |