Skip to content

Commit 73ad408

Browse files
committed
Fix variable not present error
1 parent eb2bd2b commit 73ad408

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

plugin/utils/FileBufferData.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ def _load_headers(self):
161161
key = '{}@{}'.format(username, hostname)
162162
settings = sublime.load_settings(g_CLARA_SETTINGS)
163163
headers = settings.get(key)
164-
global _loaded_headers_atleast_once
164+
global g_loaded_headers_atleast_once
165165
if headers is not None:
166166
return headers
167-
elif not _loaded_headers_atleast_once:
168-
_loaded_headers_atleast_once = True
167+
elif not g_loaded_headers_atleast_once:
168+
g_loaded_headers_atleast_once = True
169169
if sublime.ok_cancel_dialog('You do not yet have headers set up. '
170170
'Do you want to generate them now?'):
171171
sublime.run_command('generate_system_headers')

0 commit comments

Comments
 (0)