We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77399a4 commit 15d6d85Copy full SHA for 15d6d85
backend/pkg/plugins/plugins.go
@@ -377,7 +377,13 @@ func canSendRefresh(c cache.Cache[interface{}]) bool {
377
func HandlePluginEvents(staticPluginDir, userPluginDir, pluginDir string,
378
notify <-chan string, cache cache.Cache[interface{}],
379
) {
380
- for range notify {
+ for event := range notify {
381
+ // Skip CHMOD events to avoid looping on electron when user-plugins folder is watched
382
+ // these events are not relevant to see if plugins have changed.
383
+ if strings.HasSuffix(event, "CHMOD") {
384
+ continue
385
+ }
386
+
387
// Set the refresh signal only if we cannot send it. We prevent it here
388
// because we only want to send refresh signals that *happen after* we are
389
// allowed to send them.
0 commit comments