Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Prevent threaded_process dialog from showing so quickly, or at all (Read 1118 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Prevent threaded_process dialog from showing so quickly, or at all

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?