mirror of https://github.com/RPCS3/rpcs3.git
Qt: fix download menu visibility
This commit is contained in:
parent
609182b131
commit
e58e1ebfd9
|
@ -208,14 +208,14 @@ void main_window::Init()
|
||||||
|
|
||||||
connect(&m_updater, &update_manager::signal_update_available, this, [this](bool update_available)
|
connect(&m_updater, &update_manager::signal_update_available, this, [this](bool update_available)
|
||||||
{
|
{
|
||||||
if (ui->menuBar && ui->menuBar->cornerWidget())
|
|
||||||
{
|
|
||||||
ui->menuBar->cornerWidget()->setVisible(update_available);
|
|
||||||
}
|
|
||||||
if (m_download_menu_action)
|
if (m_download_menu_action)
|
||||||
{
|
{
|
||||||
m_download_menu_action->setVisible(update_available);
|
m_download_menu_action->setVisible(update_available);
|
||||||
}
|
}
|
||||||
|
if (ui->menuBar && ui->menuBar->cornerWidget())
|
||||||
|
{
|
||||||
|
ui->menuBar->cornerWidget()->setVisible(update_available);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(__linux__)
|
#if defined(_WIN32) || defined(__linux__)
|
||||||
|
|
Loading…
Reference in New Issue