refactor: Wait with tray initialization until ready
This commit is contained in:
parent
ef6f649579
commit
f33d383726
5 changed files with 16 additions and 7 deletions
src/components
|
@ -281,11 +281,6 @@ bar::bar(connection& conn, signal_emitter& emitter, const config& config, const
|
|||
m_renderer->fill_background();
|
||||
m_renderer->end();
|
||||
|
||||
m_log.trace("bar: Setup tray manager");
|
||||
m_tray->setup(static_cast<const bar_settings&>(m_opts));
|
||||
|
||||
broadcast_visibility();
|
||||
|
||||
m_sig.attach(this);
|
||||
}
|
||||
|
||||
|
@ -619,6 +614,13 @@ void bar::handle(const evt::property_notify& evt) {
|
|||
}
|
||||
}
|
||||
|
||||
bool bar::on(const sig_ev::start&) {
|
||||
m_log.trace("bar: Setup tray manager");
|
||||
m_tray->setup(static_cast<const bar_settings&>(m_opts));
|
||||
broadcast_visibility();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool bar::on(const sig_ui::unshade_window&) {
|
||||
m_opts.shaded = false;
|
||||
m_opts.shade_size.w = m_opts.size.w;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue