HydrogenAudio

Hosted Forums => foobar2000 => Development - (fb2k) => Topic started by: MordredKLB on 2018-04-30 21:53:32

Title: Prevent threaded_process dialog from showing so quickly, or at all
Post by: MordredKLB on 2018-04-30 21:53:32
My component has a threaded_process that queries last.fm for every track that plays. This query typically takes about 600-750ms to complete. Even with the threaded_process::flag_show_delayed set, I get a very brief popup that usually disappears before it can be read which is kind of distracting. Because this could theoretically happen on every track that is played, I'd prefer not to have the popup show, or at least wait longer than the 500ms.

My call:
Code: [Select]
		service_ptr_t<threaded_process_callback> cb = new service_impl_t<get_lastfm_scrobbles>(hash_record_list);
static_api_ptr_t<threaded_process>()->run_modeless(
cb,
showProgress | threaded_process::flag_show_item | threaded_process::flag_show_delayed,
core_api::get_main_window(),
COMPONENT_NAME": Retrieving last.fm scrobbles");

Is there any way to further delay the popup from displaying, or prevent it from displaying altogether?