Ver Fonte

image-source: Defer update of slideshow source

Defers the update of the slideshow source until the user has pressed OK
or exited the properties dialog.  This ensures images aren't reloaded
every time the user adjusts a setting.
jp9000 há 6 anos atrás
pai
commit
47ba3e8c22
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      plugins/image-source/image-source.c

+ 2 - 0
plugins/image-source/image-source.c

@@ -230,6 +230,8 @@ static obs_properties_t *image_source_properties(void *data)
 
 	obs_properties_t *props = obs_properties_create();
 
+	obs_properties_set_flags(props, OBS_PROPERTIES_DEFER_UPDATE);
+
 	if (s && s->file && *s->file) {
 		const char *slash;