fix: tray flickers due to excessive redrawing/visibility changing (#2747)

Co-authored-by: Patrick Ziegler <p.ziegler96@gmail.com>
This commit is contained in:
raffael0 2022-07-09 09:09:55 +02:00 committed by GitHub
parent 9f4e88c07d
commit a20f76d7e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1183,7 +1183,7 @@ bool tray_manager::on(const signals::ui_tray::tray_pos_change& evt) {
}
bool tray_manager::on(const signals::ui_tray::tray_visibility& evt) {
if (m_opts.tray_position == tray_postition::MODULE) {
if (evt.cast() == m_hidden && m_opts.tray_position == tray_postition::MODULE) {
return change_visibility(evt.cast());
} else {
return true;