FIX:changed top menu bar color on macos

Change-Id: I276aab27c2c089ad322dc5cb2f6206dccb3e494d
This commit is contained in:
tao wang 2022-12-10 15:15:56 +08:00 committed by Lane.Wei
parent 9ab6e86b47
commit 5c3c2fcb1c
3 changed files with 16 additions and 5 deletions

View file

@ -969,7 +969,10 @@ void UpgradePanel::show_status(int status)
void UpgradePanel::on_sys_color_changed()
{
m_push_upgrade_panel->on_sys_color_changed();
//add some protection for Dark mode
if (m_push_upgrade_panel) {
m_push_upgrade_panel->on_sys_color_changed();
}
}
bool UpgradePanel::Show(bool show)