Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Revert "Load git after log in, not initial connection"
Browse files Browse the repository at this point in the history
This reverts commit c5b6e66.
  • Loading branch information
tideline3d committed Nov 22, 2023
1 parent c5b6e66 commit 4661bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octoprint_gitfiles/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class GitfilesPlugin(octoprint.plugin.SettingsPlugin,
octoprint.plugin.TemplatePlugin,
octoprint.plugin.EventHandlerPlugin):
def on_event(self, event, payload, *args, **kwargs):
if event in [Events.PRINT_DONE, Events.STARTUP, Events.USER_LOGGED_IN]:
if event in [Events.PRINT_DONE, Events.STARTUP, Events.CLIENT_OPENED]:
self._logger.info("Refreshing GitFiles data from event: {}.".format(event))
self.on_api_command("git", "pull")

Expand Down

0 comments on commit 4661bba

Please # to comment.