UI: Minor fixes.

This commit is contained in:
Nodir Temirkhodjaev 2021-04-15 12:43:56 +03:00
parent e359f1ec45
commit 578a34837c
2 changed files with 3 additions and 3 deletions

View File

@ -434,10 +434,10 @@ void OptionsPage::setupDriverIcon()
m_iconDriver = ControlUtil::createLabel();
m_iconDriver->setScaledContents(true);
m_iconDriver->setMaximumSize(16, 16);
m_iconDriver->setPixmap(IconCache::file(":/icons/puzzle.png"));
const auto refreshDriverIcon = [&] {
m_iconDriver->setEnabled(driverManager()->isDeviceOpened());
m_iconDriver->setPixmap(IconCache::file(":/icons/puzzle.png"));
};
refreshDriverIcon();

View File

@ -104,8 +104,6 @@ void FortManager::initialize()
setupTaskManager();
loadConf();
connect(qApp, &QCoreApplication::aboutToQuit, this, &FortManager::closeUi);
}
FirewallConf *FortManager::conf() const
@ -299,6 +297,8 @@ void FortManager::setupTrayIcon()
connect(confManager(), &ConfManager::confSaved, m_trayIcon, &TrayIcon::updateTrayMenu);
connect(confManager(), &ConfManager::alertedAppAdded, m_trayIcon,
[&] { m_trayIcon->updateTrayIcon(true); });
connect(qApp, &QCoreApplication::aboutToQuit, this, &FortManager::closeUi);
}
void FortManager::setupProgramsWindow()