mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 16:31:28 +12:00
Qt: fix download menu visibility
This commit is contained in:
parent
609182b131
commit
e58e1ebfd9
1 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue