Qt: fix download menu visibility

This commit is contained in:
Megamouse 2020-07-28 18:04:22 +02:00
parent 609182b131
commit e58e1ebfd9
1 changed files with 4 additions and 4 deletions

View File

@ -208,14 +208,14 @@ void main_window::Init()
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)
{
m_download_menu_action->setVisible(update_available);
}
if (ui->menuBar && ui->menuBar->cornerWidget())
{
ui->menuBar->cornerWidget()->setVisible(update_available);
}
});
#if defined(_WIN32) || defined(__linux__)