Skip to content

Commit

Permalink
Fix TestausTime not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
HEPOSHEIKKI authored Jun 23, 2023
1 parent 3299645 commit f517427
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions testaustime.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
can_show_missing_key_popup = True


if TestausTime().get_api_key():
sublime.status_message(" testaustime is ready. happy coding")
else:
sublime.status_message(" testaustime API token not set")


class TestausTime:
def __init__(self):
self.settings = sublime.load_settings(PLUGIN_SETTINGS_KEY)
Expand Down Expand Up @@ -54,6 +48,11 @@ def get_endpoint_url(self):
if endpoint:
return str(endpoint)

if TestausTime().get_api_key():
sublime.status_message(" testaustime is ready. happy coding")
else:
sublime.status_message(" testaustime API token not set")

class prompt_api_key(sublime_plugin.WindowCommand):
def run(self):
self.window.show_input_panel("API key:", "", self._on_input_done, None, None)
Expand Down

0 comments on commit f517427

Please sign in to comment.