fix: ProgressBar member initialization order (#3872)

This commit is contained in:
Jindřich Makovička 2025-03-27 19:11:51 +01:00 committed by GitHub
parent c90b4aab41
commit 3627ae0177
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -1286,9 +1286,9 @@ namespace mamba
: m_progress(0)
, m_total(total)
, m_width(width)
, m_repr(this)
, m_options(options)
, m_is_spinner(false)
, m_repr(this)
{
m_repr.prefix.set_value(prefix);
}

View File

@ -394,7 +394,6 @@ namespace mamba
std::string m_last_active_task = "";
time_point_t m_task_time, m_avg_speed_time;
ProgressBarRepr m_repr;
ProgressBarOptions m_options;
bool m_is_spinner;
@ -402,6 +401,8 @@ namespace mamba
std::mutex m_mutex;
ProgressBarRepr m_repr;
void run();
std::function<void(ProgressBarRepr&)> p_repr_hook;