Fix warning

This commit is contained in:
Megamouse 2024-11-22 16:35:00 +01:00
parent 18f82f0006
commit 5491fbee5b

View file

@ -91,8 +91,8 @@ scoped_progress_dialog::scoped_progress_dialog(std::string text) noexcept
scoped_progress_dialog& scoped_progress_dialog::operator=(std::string text) noexcept
{
// Exchange text atomically
g_progr_text_queue[m_text_index].exchange(make_single_value(std::move(text)));
// Set text atomically
g_progr_text_queue[m_text_index].store(make_single_value(std::move(text)));
return *this;
}