From 4661bbadea285aa6eaf4978d28acebd39dc659b0 Mon Sep 17 00:00:00 2001 From: tideline3d Date: Wed, 22 Nov 2023 01:50:05 -0500 Subject: [PATCH] Revert "Load git after log in, not initial connection" This reverts commit c5b6e6638b27d5a6b1e6793514b779ed7ab12dca. --- octoprint_gitfiles/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint_gitfiles/__init__.py b/octoprint_gitfiles/__init__.py index f507983..b52bfd2 100644 --- a/octoprint_gitfiles/__init__.py +++ b/octoprint_gitfiles/__init__.py @@ -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")