mirror of https://github.com/mamba-org/mamba.git
fix: ProgressBar member initialization order (#3872)
This commit is contained in:
parent
c90b4aab41
commit
3627ae0177
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue