UI: Fix checked state of source toolbar menu item

After the source toolbar was hidden or shown by a hotkey, the checked
state of the menu item was not updated.

(cherry picked from commit a1c88d58fc)
This commit is contained in:
Norihiro Kamae 2023-06-17 23:32:26 +09:00 • committed by Lain
commit e2c481cf95

View file

@ -9365,11 +9365,13 @@ void OBSBasic::on_toggleListboxToolbars_toggled(bool visible)
void OBSBasic::ShowContextBar()
{
on_toggleContextBar_toggled(true);
ui->toggleContextBar->setChecked(true);
}
void OBSBasic::HideContextBar()
{
on_toggleContextBar_toggled(false);
ui->toggleContextBar->setChecked(false);
}
void OBSBasic::on_toggleContextBar_toggled(bool visible)